New page not accessible from AfterPublish event handler
Hi guys,
I've created an event handler for AfterPublish event that should create static HTML out of the page being published, but I've run into something weird: when a new page is created and published, AfterPublish event get's triggered nicely, but when I try to access the page content using default.aspx?umbPage=<nodeid> I get 404, as if the page does not exist yet. Now, I'm assuming that AfterPublish event should trigger when the publish process completes, and the page is accessible, but that is obviously not the case (haven't found any real description on events - e.g. what are the effects of each event, etc).
New page not accessible from AfterPublish event handler
Hi guys,
I've created an event handler for AfterPublish event that should create static HTML out of the page being published, but I've run into something weird:
when a new page is created and published, AfterPublish event get's triggered nicely, but when I try to access the page content using default.aspx?umbPage=<nodeid> I get 404, as if the page does not exist yet. Now, I'm assuming that AfterPublish event should trigger when the publish process completes, and the page is accessible, but that is obviously not the case (haven't found any real description on events - e.g. what are the effects of each event, etc).
What am I missing here?
More info on the environment: it's Umbraco 4.0.2.1, .Net framework 3.5 SP1
If anyone has similiar requriements here's the catch: you should be registering with AfterUpdateDocumentCache of the umbraco.content class.
--Cheers!
Thanks for this!
is working on a reply...