Did anybody have any thoughts on this? I'm guessing it has something to do with what functions are registered in EditFunctions before calling UpdatePage()?
To rephrase my question below, I am creating new pages using UpdatePage(). The pages are created, but they are not being placed in .pageindex until I manually edit and save them. What do I need to do to bypass this manual step? -Peter _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Peter & Melodye Bowers Sent: Tuesday, February 05, 2008 7:45 AM To: [email protected] Cc: Peter Gmail Bowers; SentN Subject: [pmwiki-users] UpdatePage() vs save from ?action=edit What does the save from ?action=edit do that UpdatePage() does not do? I note that if I remove a file (replace contents with "delete" and UpdatePage) and then put some other contents in and UpdatePage() the .pageindex apparently still thinks the page is nonexistent (at least ListPages() returns nothing). However, if I go to the file with ?action=edit and save it then .pageindex is updated and everybody is happy (i.e., I get results from ListPages()). Is there some other step I need to be doing if I am going to manipulate (specifically create) pages programmatically? Am I correct in assuming it is the caching in .pageindex that is preventing ListPages() from realizing that the file exists? -Peter
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
_______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
