Thank you, Hans, I will try out UpdatePage.

There must be a clear cut between functions that can be reliably called
- directly from config.php includes
- only via Markup()
- only within pmwiki.php or other scripts

http://www.pmwiki.org/wiki/PmWiki/Functions is a good start, but somehow I found it hard to find, because I was looking for more prominent a function reference of PMwiki. And it is not complete for it doesn't tell us how to fetch a page like via RetrieveAuthPage (or ReadPage?) in the first place. So I started relying on Google more than on pmwiki.org.

Actually, I had already found http://www.pmwiki.org/wiki/PmWiki/UpdatePage via Google
but I found it too complex, because I was missing the information from page PmWiki.Functions for instance.
(So I've just copied that relevant paragraph to page PmWiki.UpdatePage)

My point being that one should start more general a reference for PMwiki's functions in sort of JavaDoc style, with indication about their usability in cookbook recipes. Or does this exist anywhere already? Then pmwiki.org should point to it on more prominent a place.

Frank




Hans wrote:
Sunday, March 29, 2009, 10:43:01 AM, Frank wrote:

  
I'm also grateful for general recommendations for further reading into
pmwiki's internal workings...
    

Have you considered using function UpdatePage instead?
UpdatePage calls all the relevant edit functions in turn,
so history and attributes are processed etc.
You can, if need be, specify which edit functions should be used, by
passing a functionlist array along in the UpdatePage call.
UpdatePage was specifically introduced to give more flexibility for
recipe authors than what PostPage provided.


Hans


  


-- 
_______________________________________________________________________
Dr. Frank F. Schweickert
AMSTEL Institute, Faculty of Science, University of Amsterdam
Kruislaan 404, Amsterdam, 1098 SM, Netherlands
Room 1.09
Phone: +31 20 525-5969, Fax: +31 20 525-5866
http://www.science.uva.nl/amstel
http://www.natsim.net
_______________________________________________
pmwiki-devel mailing list
pmwiki-devel@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel

Reply via email to