[pmwiki-users] Prepend text string to wiki file when saving - a possible solution

2007-09-11 Thread Josh Miller
Hello! If anyone is curious, I found the resolution to my problem in a cookbook recipe. Instead of prepending the text when I save, it just prepends text when an (:include:) statement is found. In case anyone else is trying to add an edit link to included pages to edit the original included

[pmwiki-users] Prepend text string to wiki file when saving - another approach?

2007-09-09 Thread Josh Miller
Hi all! I'm still trying to get this to work. Patrick provided me some useful help but I couldn't get the implementation to work on my site. How about a different approach: Each time I save a wiki page to a file, I want to prepend a text string to it. Then when I edit the file, I want to

Re: [pmwiki-users] Prepend text string to wiki file

2007-09-06 Thread Josh Miller
Is there a variable for the filename in the Wiki.d directory? So that If that variable were $frenchfries for example, I could use the following in the template: %right% [[{$frenchfries}?action=edit | Edit]] The problem I have is I use a lot of includes in my wiki so I need an automated method

Re: [pmwiki-users] Prepend text string to wiki file

2007-09-06 Thread Patrick R. Michaud
On Thu, Sep 06, 2007 at 10:31:51AM -0400, Josh Miller wrote: Is there a variable for the filename in the Wiki.d directory? Do you mean the page name? If so, then {$FullName} is what you're looking for. So that If that variable were $frenchfries for example, I could use the following in the

Re: [pmwiki-users] Prepend text string to wiki file

2007-09-06 Thread Josh Miller
[mailto:[EMAIL PROTECTED] Sent: Thursday, September 06, 2007 1:56 PM To: Josh Miller Cc: pmwiki-users@pmichaud.com Subject: Re: [pmwiki-users] Prepend text string to wiki file On Thu, Sep 06, 2007 at 10:31:51AM -0400, Josh Miller wrote: Is there a variable for the filename in the Wiki.d directory

Re: [pmwiki-users] Prepend text string to wiki file

2007-09-06 Thread Patrick R. Michaud
Subject: Re: [pmwiki-users] Prepend text string to wiki file On Thu, Sep 06, 2007 at 10:31:51AM -0400, Josh Miller wrote: Is there a variable for the filename in the Wiki.d directory? Do you mean the page name? If so, then {$FullName} is what you're looking for. So that If that variable

[pmwiki-users] Prepend text string to wiki file

2007-09-05 Thread Josh Miller
I would like to prepend a text string to the front of text= whenever a new wiki page is created. Specifically, I want to prepend something like: %right% [[Site.SideBar?action=edit | Edit]] Except, instead of editing Site.SideBar, I want to edit the specific wiki file - so if I load a page

Re: [pmwiki-users] Prepend text string to wiki file

2007-09-05 Thread Patrick R. Michaud
On Wed, Sep 05, 2007 at 01:53:49PM -0400, Josh Miller wrote: I would like to prepend a text string to the front of text= whenever a new wiki page is created. [...] You might take a look at http://www.pmwiki.org/wiki/Cookbook/EditTemplates as a starting point. I'm not sure it does exactly

Re: [pmwiki-users] Prepend text string to wiki file

2007-09-05 Thread Josh Miller
On Wed, Sep 05, 2007 at 01:53:49PM -0400, Josh Miller wrote: I would like to prepend a text string to the front of text= whenever a new wiki page is created. [...] You might take a look at http://www.pmwiki.org/wiki/Cookbook/EditTemplates as a starting point. I'm not sure it does