[pmwiki-users] wikistyle scope - multiple lines

2011-06-05 Thread Christophe David
On http://www.pmwiki.org/wiki/PmWiki/WikiStyles, I read *Then, in an advanced table, you can have: (:cellnr:) %apply=row id=myid bgcolor=pink% cell content* However, I cannot get this to work with (:cellnr:)%apply=row target=_blank% as demonstrated on http://www.pmwiki.org/wiki/Cda/Test The

[pmwiki-users] Why does this not work ? %center% %newwin% %width=100px% [[http://www.pmwiki.org|images:/image.png]]

2011-05-24 Thread Christophe David
Would someone know how to achieve this apparently simple task - center (%center%) a link/image specified using a InterMap (images:/image.png) - set its width to 100 pixels (%width=100px%) - AND have the target open in a new window (%newwin%) It should look like %center% %newwin%

[pmwiki-users] pagelist sort - accented characters

2009-05-21 Thread Christophe David
Would somebody have an idea how to get pagelists sorted according to a dictionary order with accented characters ? I created a simple example on http://www.pmwiki.org/wiki/TestSort/TestSort : The pagelist lists four pages, named Ad, Ae, Aé (e with acute accent), Af I would like to obtain Ad,

Re: [pmwiki-users] Categories (and nested categories) in Action

2009-05-04 Thread Christophe David
Can anyone point me to examples in the wild of categories and, particularly nested categories, in action? I'm trying to get my mind around how they might work in a real implementation... http://www.mot.be/w/1/index.php/IDDOCEn/Introduction http://www.mot.be/w/1/index.php/RCBEn/Introduction

Re: [pmwiki-users] defining intermap in PHP

2009-02-26 Thread Christophe David
2009/2/25 Eemeli Aro eem...@gmail.com: You'll need this: $LinkFunctions['PmWikiHome:'] = 'LinkIMap'; $IMap['PmWikiHome:'] = 'http://pmwiki.org/wiki/$1'; Note the :'s at array key ends. This works great ! Thanks a lot. Christophe ___

Re: [pmwiki-users] defining intermap in PHP

2009-02-25 Thread Christophe David
Is it possible to define custom InterMap (http://www.pmwiki.org/wiki/PmWiki/CustomInterMap) in PHP ? I found $IMapLinkFmt and $InterMapFiles, but I am looking for something like $InterMap['PmWikiHome'] = 'http://pmwiki.org/wiki/'; Try this: $IMap['PmWikiHome'] =

[pmwiki-users] defining intermap in PHP

2009-02-24 Thread Christophe David
Is it possible to define custom InterMap (http://www.pmwiki.org/wiki/PmWiki/CustomInterMap) in PHP ? I found $IMapLinkFmt and $InterMapFiles, but I am looking for something like $InterMap['PmWikiHome'] = 'http://pmwiki.org/wiki/'; Thank you in anticipation. Christophe

[pmwiki-users] pagelist sort using locale

2009-02-06 Thread Christophe David
When sorting pagelists, for example with the option order=title, the sort does not take in account locale settiings. This causes the french accented 'a' ('à' or 'â' ) to be listed after 'z'. The PHP sort function allows a second parameter (bool sort ( array $array [, int

Re: [pmwiki-users] Turbo powered pagelists

2009-02-06 Thread Christophe David
The issue here is that pagelists take an enormous amount of time to render a list of pages, given some criteria. such 'loose' tools could be caches, which can be enabled/disabled at will. Have you tried to set $PageListCacheDir (The name of a writable directory where PmWiki can cache

Re: [pmwiki-users] deleted pages in pagelists

2008-12-18 Thread Christophe David
I would like to display in a page the list of deleted pages in a group. As the deleted pages are skipped from the search and page list results, I I just published a new recipe to do that: see http://www.pmwiki.org/wiki/Cookbook/Trash . The recipe adds two actions: 'trash' and 'untrash'.

Re: [pmwiki-users] deleted pages in pagelists

2008-12-18 Thread Christophe David
what happens if you have a page Group.A which gets trashed to group.A-trash. Then someone creates Group.A again and trashes it again. Do you have some way of preserving both copies with a numerical suffix or timestamp or something? Currently, only one version is preserved. I could change

[pmwiki-users] RSS image tag oddity

2008-10-12 Thread Christophe David
Running pmwiki-2.2.0-beta67. When using ?action=rss, the RSS attributes can be defined via $FeedFmt['rss'], like $FeedFmt['rss']['feed']['TheTag'] However, the image tag does not appear to be handled like the others: if you use the example on http://www.pmwiki.org/wiki/PmWiki/WebFeeds

Re: [pmwiki-users] RSS image tag oddity

2008-10-12 Thread Christophe David
$FeedFmt['rss']['feed']['image'] = titleLogo title/title linkhttp://example.com//link urlhttp://example.com/images/logo.gif/url width120/width height60/height; there is no image/image pair around the value defined, as for Found it. It is documented... : If the value of an entry

Re: [pmwiki-users] Directing users to the wiki homepage

2008-10-02 Thread Christophe David
Is there a way I can direct users who come to the wiki through the side door (i.e. a previously bookmarked page) to the wiki homepage and then perhaps allow them to get to the original target page? I'd be interested to hear if other wiki admins have solved this situation in other ways too .

Re: [pmwiki-users] PmWiki as RSS engine

2008-10-01 Thread Christophe David
To get an RSS feed based on a pagelist with those parameters, it's simply: http://.../pmwiki.php?action=rssgroup=abcname=deforder=jklcount=123 Then we just need to change the format of the feed itself -- this can be done with the $FeedFmt array (see the bottom of PmWiki.WebFeeds for some

[pmwiki-users] PmWiki as RSS engine

2008-09-30 Thread Christophe David
Could someone please advise how to generate RSS feeds that list one item for every page in a pagelist, using the content of each page to populate the fields ? Each page would contain (:title:MyTitle:) (:link:MyLink:)(:description:MyDescription:), etc., and calling the feed page with ?action=rss

Re: [pmwiki-users] Infected Cookbook Recipes?

2008-09-22 Thread Christophe David
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I'm troubling myself with the following (dreadful) thought: is there a sort of security lock/code/flag/hash/signature/whatever allowing people to trust (somehow) the recipes the community upload/download and let run inside its servers? If a

Re: [pmwiki-users] Infected Cookbook Recipes?

2008-09-22 Thread Christophe David
never mind, i understand now: the script becomes an encrypted piece of text, and needs to be decrypted before use. You can encrypt and/or sign?. In this case, we would just sign so that anyone can check it has not been altered. A signature can be sent within a text (like the signature of

Re: [pmwiki-users] Infected Cookbook Recipes?

2008-09-22 Thread Christophe David
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oops, hit the wrong key - mail sent while editing never mind, i understand now: the script becomes an encrypted piece of text, and needs to be decrypted before use. You can encrypt and/or sign. In this case, we would just sign so that anyone can

Re: [pmwiki-users] Infected Cookbook Recipes?

2008-09-22 Thread Christophe David
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 But it is quite a bit of extra work, and it forces a user to install GPG in order to use the recipe. No: the user gets a .zip file containing the recipe that can be used directly. If *and only if* he wants to validate it, he can use GPG. The

Re: [pmwiki-users] Infected Cookbook Recipes?

2008-09-22 Thread Christophe David
But it is quite a bit of extra work Forgot to add that signing a file is typically done by right clicking in the file manager and typing a passphrase ;-) The sign/encrypt/decrypt functions of GPG are very well integrated for most platforms, file managers, browsers and email clients with free

Re: [pmwiki-users] Infected Cookbook Recipes?

2008-09-22 Thread Christophe David
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 But in order to sign the files, the public key for the signature would have to be posted somewhere! That is the purpose of keyservers like http://pgp.mit.edu . In order to make sure a public key actually belongs to the right person, public keys

Re: [pmwiki-users] Look-and-feel

2008-04-25 Thread Christophe David
would it be possible to get a few examples of web-sites from you on this list -- those sites that really have worked on the aesthetics side of things with pmwiki? Have you seen http://www.pmwiki.org/wiki/PmWiki/PmWikiUsers and http://www.pmwiki.org/wiki/PmWiki/SuccessStories ?

Re: [pmwiki-users] Flash Video

2008-04-22 Thread Christophe David
Christophe, which recipes are you using? (It's not possible to view source.) http://www.pmwiki.org/wiki/Cookbook/Flash http://www.pmwiki.org/wiki/Cookbook/FlashMediaPlayer http://www.pmwiki.org/wiki/Cookbook/Radio3Player are concrete example how to do it. The flash player you choose has

Re: [pmwiki-users] Flash Video

2008-04-21 Thread Christophe David
A few of us are having trouble getting any of the flash recipes to show flash video correctly. Is there anybody on the list who has setup a working example that we could take a look at? http://www.mot.be/w/1/index.php/MuseumNl/DeKist http://www.mot.be/w/1/index.php/BakehousesEn/Bakehouses

Re: [pmwiki-users] 404 not found with IE7 only ???

2008-03-02 Thread Christophe David
**intermittent** 404 Not Found on many pages with Internet Explorer only I suspect it has someting to do with the page names mades of digits only, as there are no 404 errors for other groups using page names containing letters. http://www.mot.be/w/1/index.php/IDDOCNl/0873

Re: [pmwiki-users] 404 not found with IE7 only ???

2008-03-02 Thread Christophe David
**intermittent** 404 Not Found on many pages with Internet Explorer only I think I found the problem, and it might be related to a tricky (?) use of PmWiki. When PmWiki is requested to display the page MyGroup.MyPage, and MyPage is not present, but MyGroup.GroupHeader exists, then having

Re: [pmwiki-users] 404 not found with IE7 only ???

2008-03-02 Thread Christophe David
So, I think the current approach is the correct one -- if the page doesn't exist, return a 404 Not Found code. For pseudo pages that should actually be treated as existing even though they don't, the correct solution is to do a local customization of $PageNotFoundHeaderFmt . OK, fair

[pmwiki-users] $HandleAuth['crypt'] = 'edit' not working ?

2008-03-01 Thread Christophe David
Could someone please try if the following line works as expected ? $HandleAuth['crypt'] = 'edit'; Even with this line in config.php, users seem to be able to use action=crypt even when they have no edit rights. Thank you in anticipation. Christophe

Re: [pmwiki-users] $HandleAuth['crypt'] = 'edit' not working ?

2008-03-01 Thread Christophe David
$HandleAuth['crypt'] = 'edit'; Even with this line in config.php, users seem to be able to use action=crypt even when they have no edit rights. The ?action=crypt is handled somewhat specially, in that it doesn't bother to check permissions on any page before being able to run it. There

Re: [pmwiki-users] 404 not found with IE7 only ???

2008-03-01 Thread Christophe David
**intermittent** 404 Not Found on many pages with Internet Explorer only I suspect it has someting to do with the page names mades of digits only, as there are no 404 errors for other groups using page names containing letters. http://www.mot.be/w/1/index.php/IDDOCNl/0873

[pmwiki-users-fr] 404 not found with IE7 only ???

2008-03-01 Thread Christophe David
On http://www.mot.be (pmwiki-2.2.0-beta65, 16.000+ pages, 30.000 hits a day), visitors using Microsoft Internet Explorer report **intermittent** 404 Not Found on many pages. The Apache log shows it returned 404, so I guess PmWiki did not have even a chance to get lauched: [01/Mar/2008:12:55:33

Re: [pmwiki-users] content refused

2008-02-25 Thread Christophe David
and it *is* a size limit problem, because I can insert half of the text, but not all Try ini_set('memory_limit', '128M'); ini_set('pcre.backtrack_limit', '99'); ini_set('pcre.recursion_limit', '99'); It worked for me ;-) Christophe ---

Re: [pmwiki-users] content refused

2008-02-25 Thread Christophe David
Try ini_set('memory_limit', '128M'); ini_set('pcre.backtrack_limit', '99'); ini_set('pcre.recursion_limit', '99'); It worked for me ;-) on what file? can you elaborate a bit on these settings, I don't want to have problems with my server :-)) At the very beginning of

Re: [pmwiki-users] adding cookbook script

2008-02-24 Thread Christophe David
A similar argument goes for storing parts of config.php into a wiki page -- it means that someone who is able to modify those pages somehow can start executing arbitrary scripts on the server. There may be cases where this would be okay, but in the general case I think it's too big a

Re: [pmwiki-users] Creating a link to the next page

2008-01-10 Thread Christophe David
Is there a way to define a sequence of pages and then create a link to the next page or to the previous page? Have a look at http://www.pmwiki.org/wiki/PmWiki/WikiTrails Christophe ___ pmwiki-users mailing list pmwiki-users@pmichaud.com

Re: [pmwiki-users] PmWIki AuthUser passwords stored in clear in PHPsession files

2007-10-16 Thread Christophe David
This is not relevant for this topic: we are talking about PHP session files storing passwords in clear. The topic isn't necessarily that specific, considering this is the pmwiki-users list, not pmwiki-devel. First, here's the part you chopped out... Sorry if it hurt you. I have been

Re: [pmwiki-users] PmWIki AuthUser passwords stored in clear in PHPsession files

2007-10-12 Thread Christophe David
AFAIK, there's no *simple* mean to solve what you called an issue. Indeed, but it does not make it a non-issue ;-) I don't want to describe all the gory details here (you may see [1],[2] and the PHP documentation for references), but basically PmWiki uses the session data as a backup of what

Re: [pmwiki-users] PmWIki AuthUser passwords stored in clear in PHPsession files

2007-10-12 Thread Christophe David
Indeed, but it does not make it a non-issue ;-) To briefly answer the above discussion: the plan is that PmWiki will change the way it manages passwords so that they aren't held in cleartext in the session data. In addition, there will be an $EnableSessionPasswords configuration variable

[pmwiki-users] PmWIki AuthUser passwords stored in clear in PHP session files

2007-10-10 Thread Christophe David
This question was already posted in August, but did not receive any answer. Same player shoots again ;-) PHP stores session data to temporary files on the server. These files contain in clear all the session variables and their values. When using AuthUser, PmWIki stores the user password in

Re: [pmwiki-users] PmWIki AuthUser passwords stored in clear in PHPsession files

2007-10-10 Thread Christophe David
which temporary file contains the password ? The path for PHP session files is defined by session.save_path in php.ini. (phpinfo() should give you the settings on your system.) Details on http://www.php.net/session . The files are plain text with all variables stored in clear. Thank you for

Re: [pmwiki-users] PmWIki AuthUser passwords stored in clear in PHP session files

2007-10-10 Thread Christophe David
Maybe I just don't understand the problem, but if you use a secure authentication method other than the built-in PmWiki passwords, I can't see how PHP or PmWiki can know the password. I use PmWiki AuthUser, but with the passwords stored on a LDAP server instead of on the page

Re: [pmwiki-users] An extended footnote recipe (FootnotesExtended)

2007-09-23 Thread Christophe David
http://www.pmwiki.org/wiki/Cookbook/FootnotesExtended Very useful. Something that should be tuned : doubles quotes are 'escaped' in the footnote [^My footnote text belonging to an 'unnamed footnote'.^] - 1 My \footnote text\ belonging to an 'unnamed footnote'. Christophe

Re: [pmwiki-users] (:include Main.SomePage#FromHere#ToHere:) in PHP ?

2007-09-13 Thread Christophe David
Could someone please post the PHP code equivalent to (:include Main.SomePage#FromHere#ToHere:) $text = RetrieveAuthSection($pagename, 'Main.SomePage#FromHere#ToHere'); Pm I have a pagelist format that includes a section of the listed pages, as shown below. This works exactly as expected,

[pmwiki-users] comma in filenames - VMS incompatibility

2007-09-12 Thread Christophe David
PmWiki uses a comma in filenames like ,new; ,del, imported. This prevents Pmwiki from working properly on a machine running OpenVMS, because the comma is not supported in the file names. Would it be possible to have something like SDV($FileNameSeparatorCharacter, ','); so that it could be

[pmwiki-users] conditional markup for AuthUser groups

2007-09-11 Thread Christophe David
When you have in SiteAdmin.AuthUser user1: hash1 user2: hash2 user3: hash3 user4: hash4 @group1: user2, user3 @group2: user1, user4 @group3: user1, user2, user3 is there a way to create a conditional markup like (:if auth read:) to check if the user is member of a group: Something like : (:if

[pmwiki-users] (:include Main.SomePage#FromHere#ToHere:) in PHP ?

2007-09-10 Thread Christophe David
Could someone please post the PHP code equivalent to (:include Main.SomePage#FromHere#ToHere:) It can be done with ReadPage() followed by a regular expression search, but there must be an easier way to do it... Thank you in anticipation. Christophe

[pmwiki-users] PmWIki AuthUser/LDAP passwords stored in clear in PHP session files

2007-09-10 Thread Christophe David
When using PmWiki with AuthUser/LDAP, the users passwords are stored in clear in PHP sessions files on the server. With LDAP, this password is typically used for many applications/systems, and anyone who has read access to the PHP session files can obtain the users LDAP password, which is quite

[pmwiki-users] %audience% wiki-style ?

2007-09-06 Thread Christophe David
Could someone please post the definition of the %audience% wikistyle used on pmwiki.org to generate the yellow boxes on the right of some pages ? Thank you in anticipation. Christophe ___ pmwiki-users mailing list pmwiki-users@pmichaud.com

Re: [pmwiki-users] markup to markup question

2007-08-23 Thread Christophe David
ISTR there is some way to specify where your custom markup ((:foo:)) should be interpreted in the hierarchy of other markup. Basically, you See http://www.pmwiki.org/wiki/PmWiki/CustomMarkup . You probably need to use a different $when so that one markup is processed before the other.

[pmwiki-users] UpdatePage() generating error

2007-08-22 Thread Christophe David
Using ReadPage() / UpdatePage() to update passwords hashes in SiteAdmin.AuthUser (with beta 63), I get intermittent error messages generated when calling UpdatePage about function requiring an array. My guess is that because the passwords hashes contain '$' folowed by numbers, in certain

[pmwiki-users] making brute force attacks more difficult

2007-08-20 Thread Christophe David
Looking at the logfiles I suspect someone is trying a brute force attack to get the admin password one of my PmWiki fields, sending many requests at a time and loading the server quite a lot. If I understand correctly, as $DefaultPasswords['admin'] is normally always defined, there is no need

Re: [pmwiki-users] making brute force attacks more difficult #2

2007-08-20 Thread Christophe David
I propose two things: - bind the session to the remote ip address and the user agent - restrict a login from a remote ip address if there are more than 5 bad logins within the last 2 hours What do you think ? Code: It looks very interesting. Thanks a lot for sharing this. May I suggest

Re: [pmwiki-users] Speed up PmWiki

2007-08-15 Thread Christophe David
If I recall correctly, the (:title:) markup currently invalidates all cache, and that is unfortunate. I already noticed some pages are not cached despite they have no apparent reason not to be. This could well be the cause. Pm, could you please confirm and consider enabling caching for pages

Re: [pmwiki-users] Speed up PmWiki

2007-08-14 Thread Christophe David
Unless all cache files are deleted somehow every time there is a change ? Yes. This is exactly what I would like to have. Ideally, one could define the cached page and group names (via regexpr) that are to be deleted when an edit/new action is invoked on a particular page. That way one

Re: [pmwiki-users] An author name is required - needs to be more obvious

2007-08-06 Thread Christophe David
The current display of An author name is required when users forget to add an Author name and click Save blends too nicely into the background. respectfully suggest that this become the default: $AuthorRequiredFmt = %red%'''[++An author name is required++]'''%%; I would like that too.

Re: [pmwiki-users] local redefinition of a CSS class

2007-08-03 Thread Christophe David
1. In pub/css.local.css: .redsmall, .redsmall a, .redsmall a.wikilink { text-decoration:none; font-size:smaller; color:red; } 2. In the wiki page: %redsmall%[[Main/HomePage]]%% Thanks a lot. Is there a way to define this in a wikipage too ? I tried with %define, but could not get

Re: [pmwiki-users] local redefinition of a CSS class

2007-08-03 Thread Christophe David
So, at least in beta63, there doesn't seem to be a way to so I'll see about coming up with a fix at some point. As an external stylesheet (e.g., pub/css/local.css), one could do: Thanks a lot for your help. What about putting the markup found in

[pmwiki-users] local redefinition of a CSS class

2007-08-02 Thread Christophe David
Could someone please give an example how to redefine the CSS attributes for a class (like 'wikilink') locally ? Example: At a given place only, the link [[Main.HomePage|Home]] (class='wikilink') should be rendered with text-decoration:none, font-size:smaller and color:red . I tried to do it with

[pmwiki-users] PmWiki as XML source ?

2007-07-20 Thread Christophe David
Many applications use XML formatted data obtained from a web server. PmWiki pagelists formats are so powerful that the information returned could be used by other applications expecting XML, if the there was a way let PmWiki return Content-Type: text/XML in the HTTP header, and to remove the

Re: [pmwiki-users] PmWiki as XML source ?

2007-07-20 Thread Christophe David
Sure... just create a skin for it, and omit the !--HTMLHeader-- and !--HTMLFooter-- directives. I'll be glad to create one for this, if someone can let me know what belongs and doesn't belong in the resulting output. Well, basically, a page containg test whatever123/whatever /test shown

Re: [pmwiki-users] PmWiki as XML source ?

2007-07-20 Thread Christophe David
Wouldn't we also need at least a ?xml ...? tag at the beginning? The specs are : The root element can be preceded by an optional XML declaration. This element states what version of XML is in use (normally 1.0); it may also contain information about character encoding and external dependencies.

Re: [pmwiki-users] PmWiki as XML source ?

2007-07-20 Thread Christophe David
Okay, you're asking for something very different from what PmWiki produces. PmWiki doesn't have markup rules for producing link Well, I would already be very happy to create the pagelist templates myself to generate root myitemabc/myitem myitemcde/myitem /root as long as I could use a

Re: [pmwiki-users] PmWiki as XML source ?

2007-07-20 Thread Christophe David
Sure -- that's what the example I gave demonstrates -- see http://www.pmwiki.org/wiki/Test/XMLTest?skin=xml None of the css or formatting or HTML head/body/title/etc. elements Not really : See http://www.pmwiki.org/wiki/Test/XMLTest2?skin=xml then, view source. There are still things

Re: [pmwiki-users] automatic logout ?

2007-07-19 Thread Christophe David
At any rate, there's a special-purpose session_set_cookie_params() function that seems to do exactly what you want. So, to automatically log out after 10 minutes, try (in local/(farm)config.php): session_set_cookie_params(10 * 60); For what it's worth, I'm using authuser and neither of

[pmwiki-users] automatic logout ?

2007-07-17 Thread Christophe David
Is there a way to force users to log on again after a specified time, so that their access rights are not left forever (?) on a shared PC if they do not logout ? I hoped to find something similar to SDV($AuthorCookieExpires,$Now+60*60*24*30); but I could not find it... Thank you in

Re: [pmwiki-users] file upload truncates leading underscores in filenames

2007-07-13 Thread Christophe David
the wiki upload removes all leading underscores in the names of uploaded files. If it is a feature, can it be disabled ? If not, can it be fixed ? According to http://www.pmwiki.org/wiki/PmWiki/UploadsAdmin#restrictinguploadedfiles , it appears to be a feature: the name must begin and end

Re: [pmwiki-users] php match q

2007-07-12 Thread Christophe David
The ability to match on a regular expression, if I decide to keep it, will undoubtedly become (:if regex ... :) . Please decide so ;-) Christophe ___ pmwiki-users mailing list pmwiki-users@pmichaud.com

[pmwiki-users] Set a PageTextVariable from config.php

2007-07-06 Thread Christophe David
Instead of defining a Pagetextvariable as (:Country: Transylvania :) to retrieve it in a page with {$:Country} , I would like to set 'Country' in config.php. From pmwiki.php (PageTextVar function), I guess something like $PCache['Group.Page'][=p_Country] = 'Transylvania'; should work, but

Re: [pmwiki-users] Set a PageTextVariable from config.php

2007-07-06 Thread Christophe David
Why do you want to do this? Page Text Variables are not designed to be set from config.php. If you want to create a variable in config.php, then you should use the thing that was designed to do so -- that is, Page Variables. See http://www.pmwiki.org/wiki/PmWiki/PageVariables Good point.

Re: [pmwiki-users] Files missing from wiki.d directory

2007-07-01 Thread Christophe David
etc. The wiki.d folder opens and displays the first hundred or so files in alphabetical order and nothing more. Seems the system is timing out or something.I will contacting my hosting service about this. This is probably due to the configuration of the FTP server indeed. I had the same

[pmwiki-users] ImportText and $DiffKeepDays

2007-06-28 Thread Christophe David
When pages are imported using the ImportText recipe ( http://www.pmwiki.org/wiki/Cookbook/ImportText ), PmWiki does not appear to take in account the $DiffKeepDays variable ( http://www.pmwiki.org/wiki/PmWiki/EditVariables#DiffKeepDays ): all previous revisions are kept in the page, even if older

[pmwiki-users] Variables expansion oddity in titles and pagelists

2007-06-28 Thread Christophe David
When using (:title $ton:) or (:title $kilo:) (in fact any title beginning with $t or $k, and probably other letters or sequences too) and then generating a pagelist using {=$Title}, the result is not what is expected. Apparently $t and $k are expanded first, then the rest of the string is

[pmwiki-users] ImportText end of line delimiters issue

2007-06-26 Thread Christophe David
The ImportText recipe (http://www.pmwiki.org/wiki/Cookbook/ImportText), does not always handle the end of line delimiters adequately, especially when importing files created on another platform than the one running PmWIki. The resulting PmWiki pages contain then hard delimiters instead of having

[pmwiki-users] Group deletion

2007-06-18 Thread Christophe David
Second try ;-) Considering the indexing, caching and the other optimizations, what is the best/most efficient way to delete all pages in a group in one operation while maintaining the related files up to date ? (ie: someting between deleting the page files directly and typing delete in every

[pmwiki-users] Group deletion

2007-06-14 Thread Christophe David
Considering the indexing, caching and the other optimizations, what is the most efficient way to delete all pages in a group in one operation while maintaining the related files up to date ? Christophe ___ pmwiki-users mailing list

[pmwiki-users] wikifield maintenance

2007-06-14 Thread Christophe David
Would someone have recommendations regarding the maintenance tasks that should be performed regularly on a a wikifield ? In particular, - expirediff - regeneration of .pageindex and similar - deletion of pagelist cache files - deletion of HTML cache files - deletion of *,del-* files - deletion

Re: [pmwiki-users] HTML cache

2007-06-11 Thread Christophe David
To create a set of list items consisting solely of $:MyPageTextVariable: foreach($matches as $m) { $ptv = PVSE(PageVar($m, '$:MyPageTextVariable')); $out .= li$ptv/li\n; } This works great and much faster than templates. It is indeed the right way to produce large complex

Re: [pmwiki-users] HTML cache

2007-06-11 Thread Christophe David
This will create a list of the values of $:MyPageTextVariable It looks that using a custom function instead of a pagelist template has a side effect on the count= parameter, which does not appear to be processed correctly. fmt=#MyFormat (defined in LocalTemplates) : count= works OK

Re: [pmwiki-users] HTML cache

2007-06-10 Thread Christophe David
For really fast processing and output of pagelists, one should really create a custom formatting function for pagelist and not rely solely on the markup rendering engine. Prior to pagelist templates, this is how we did all of our output stuff. I am afraid I missed something here. Do you

Re: [pmwiki-users] HTML cache

2007-06-10 Thread Christophe David
Essentially, a custom formatting function will generally look like: Hope this helps -- let me know if you need any further hints. Thanks a lot. I just copied your example and it works great. Could you please show me how to convert the following parts of a pagelist template

Re: [pmwiki-users] HTML cache

2007-06-09 Thread Christophe David
This does require a fair bit of additional code and complexity to implement, and it also means reworking some of PmWiki's existing something cached is out of date structures. And overall it hasn't been a high priority, but I might be able to squeeze some time in to improve it. The root

[pmwiki-users] HTML cache

2007-06-08 Thread Christophe David
When generating long pagelists with custom templates, PmWiki sometimes appears to exceed system resources and ends up returning a blank screen. $PageCacheDir = 'cache.d'; $PageListCacheDir= 'cache.d'; $EnableHTMLCache = 1; $EnableIMSCaching = 1; help a lot, as the resulting page is

[pmwiki-users] newline in PageTextVariable content ?

2007-06-05 Thread Christophe David
Is it possible to store a newline in a Pagetext variable like (:MyPageTextVariable:Line1\nLine2\nLine3:) so that the content is displayed on several lines ? Christophe ___ pmwiki-users mailing list pmwiki-users@pmichaud.com

Re: [pmwiki-users] newline in PageTextVariable content ?

2007-06-05 Thread Christophe David
(:MyPageTextVariable:Line1 Line2 Line3:) Too simple ;-) Don't know why I was convinced they had to be defined on a single line ;-) Thanks ! ___ pmwiki-users mailing list pmwiki-users@pmichaud.com

[pmwiki-users] Conditional markup equal with quotes

2007-06-05 Thread Christophe David
Would someone have an idea how to determine if PageTextVar1 is defined and/or blank, and possibly how to make the equal succeed ? Without the quotes, there is of course no problem. (:PageTextVar1:abc de 'fg' hij:) (:if equal ({$:PageTextVar1}) (abc de 'fg' hij) :) OK (:ifend:) Christophe

Re: [pmwiki-users] RecentChanges cleanup

2007-06-03 Thread Christophe David
parsing code would have to match this format. If you need to have a list limited by date you could use dynamically created pagelist: (:pagelist order=-time if=date {(ftime %F -7days)}..{(ftime %F today)} @{=$LastModifiedTime} fmt=#YourListFormat:) where $LastModifiedTime is a page variable

[pmwiki-users] RecentChanges cleanup

2007-06-01 Thread Christophe David
Is there a way to specify the number of days the RecentChanges pages report changes ? Christophe ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Re: [pmwiki-users] ImportHTML was: pagelists link= with pages generated externally

2007-05-29 Thread Christophe David
ImportText is looking very good. My only request is (if its not there already) to put in some hooks to call user-supplied routines to wiki-convert the file contents. Good idea, I'll see what I can do. But if someone else wants to tackle that feature... be my guest! :-) I am not sure

Re: [pmwiki-users] pagelists link= with pages generated externally

2007-05-28 Thread Christophe David
I've just updated the import.php script with an $ImportTime variable to indicate the maximum amount of time (in seconds) that the script should spend importing files. The default is 15 seconds. Thanks a lot for further improving this very useful recipe. If time expires before import has

[pmwiki-users] what about purge actions ?

2007-05-28 Thread Christophe David
Typical PmWiki wiki.d directories tend to become full of deleted pages, especially when expirediff is used to do some cleanup. Wouldn't it be useful to provide maintenance actions like action=PurgeDeletedPages action=PurgeHTMLcache action=PurgePageListscache restricted by default to

Re: [pmwiki-users] pagelists link= with pages generated externally

2007-05-27 Thread Christophe David
By the way, there is one more action that would ideally complement the import... ;-) Guess what ? action=export. This would take the content of the page and copy it as text in an export directory. If you consider using action=source for that, the feature is already available... ;)

[pmwiki-users] Caching strategy

2007-05-27 Thread Christophe David
As far as I understand, PmWiki does all it can to disable local caching by the client browser, as the pages are exptected to change at any time. $PageListCacheDir = 'work.d'; $PageCacheDir = 'work.d'; Now that we have page caching and pagelist caching available, is this approach still the

Re: [pmwiki-users] pagelists link= with pages generated externally

2007-05-27 Thread Christophe David
A simple answer might be to simply extend ?action=source so that it not only returns a copy of the source to the browser, but optionally exports a copy of the text to an export directory somewhere. This would be perfect indeed: action=export could run the same code as action=source and save

Re: [pmwiki-users] Caching strategy

2007-05-27 Thread Christophe David
$EnableIMSCaching = 1; PmWiki then uses the If-Modified-Since request header to (smartly) manage the browser's cache also. Great, thank you. The subject of caching and the retaled variables would definitely deserve their own page in the documentation ;-) ---

Re: [pmwiki-users] pagelists link= with pages generated externally

2007-05-26 Thread Christophe David
This already exists in import.php, as $ImportFilePattern (no 's'). I am using the new import feature extensively now, and it works great. However, when you have **many** files to import (as when you have one page per record in an emulated database, your often reach the server timeout when

Re: [pmwiki-users] pagelists link= with pages generated externally

2007-05-26 Thread Christophe David
May I suggest to add one more configuration variable to specify a maximum script running time or a maximum number of files to import in one run ? Sure, we can do that. But note the caveat below... This way, the first request could import a first batch of files without reaching the

Re: [pmwiki-users] pagelists link= with pages generated externally

2007-05-24 Thread Christophe David
http://www.pmwiki.org/wiki/Cookbook/ImportText Whenever this script detects that the import/ directory has changed, or at intervals given by $ImportFreq (in seconds), it scans the import/ directory to see if there are any new files to be imported. Could you please explain how this works ?

Re: [pmwiki-users] pagelists link= with pages generated externally

2007-05-24 Thread Christophe David
Following up to my previous post, I should go ahead and outline the other ways to get things imported quickly without setting $ImportFreq to a low value. Thanks a lot, Patrick. It is very helpful indeed. While you are at it, I have one more suggestion for this new recipe:

Re: [pmwiki-users] pagelists link= with pages generated externally

2007-05-24 Thread Christophe David
This already exists in import.php, as $ImportFilePattern (no 's'). I should have checked the source ;-) Wonderful ! Christophe ___ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users

  1   2   >