2011-03-29, 16:05:36
polyfragmented Wrote:My first question is if I can somehow check for creation of a page with a hook?
I saw a page-delete and a changedata-save hook in the wiki docs, but none for when a page is created. Have I overlooked it?
Can I maybe use changedata-save with some additional check if the page already had a respective xml file in /data/pages? I'm thinking of reading in the existing pages into an array and then check for existence.
If I remember correctly, check for isset($_POST['post-id']) on changedata-save: if it's not set, it's a new page.