[pmwiki-users] Prepend text string to wiki file when saving - a possible solution
josh at virtualmillers.net
Tue Sep 11 10:53:12 CDT 2007
If anyone is curious, I found the resolution to my problem in a cookbook
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 page, this cookbook recipe works great!
I added the below to my config file:
###Cookbook Recipe: IncludeWithEdit
"PRR().'<p class=\\\'included\\\'><span class=\\\'button\\\'>".
I use UserAuth, hence the (:if !loggedin :) - you can take that line out
if you don't use UserAuth.
There are also some css styles on that cookbook page that are handy.
More information about the pmwiki-users