[pmwiki-users] Need hook for on save

Petko Yotov 5ko at 5ko.fr
Fri May 6 16:30:47 CDT 2016

Set the name of your function as an element of the $EditFunctions array. 


These functions are called when a page is posted.

Simple recipes that apply this are these recipes:


You may also want to see how the core functions in this array work, 
notably PostRecentChanges() in pmwiki.php. It does something similar to 
what you describe -- updates a few other pages when a page is saved.


Change log     :  http://www.pmwiki.org/wiki/PmWiki/ChangeLog
Release notes  :  http://www.pmwiki.org/wiki/PmWiki/ReleaseNotes
If you upgrade :  http://www.pmwiki.org/wiki/PmWiki/Upgrades

On 2016-05-06 21:42, Lars Eighner wrote:
> I want PmWiki to kick my cookbook function when a page is saved. My 
> function
> needs the pagename, and of course to be called.
> I have found similar questions in various archives, but nothing that 
> hits
> the nail on the head.
> I am trying to make a family history wiki. I want it to be 
> self-contained
> (no external database) and I would like to data entry and editing to be 
> done
> by editing the pages (not for naive users). Pages would most be page
> variables, stubs to display them and a few narrative blocks. I'd like 
> to
> scrape the diff of the pagevarible to update related pages and I would 
> like
> this to happen just as the page is saved.

More information about the pmwiki-users mailing list