Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Vanja Tesin 30 posts 55 karma points
    Dec 21, 2009 @ 11:51
    Vanja Tesin
    0

    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?

  • Vanja Tesin 30 posts 55 karma points
    Dec 21, 2009 @ 12:22
    Vanja Tesin
    0

    More info on the environment: it's Umbraco 4.0.2.1, .Net framework 3.5 SP1

  • Vanja Tesin 30 posts 55 karma points
    Dec 21, 2009 @ 15:52
    Vanja Tesin
    2

    If anyone has similiar requriements here's the catch: you should be registering with AfterUpdateDocumentCache of the umbraco.content class.

     

    --Cheers!

  • Stephan Lonntorp 195 posts 212 karma points
    Feb 23, 2010 @ 12:31
    Stephan Lonntorp
    0

    Thanks for this!

Please Sign in or register to post replies

Write your reply to:

Draft