November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
You are not doing anything wrong, it's just a feature in EPiServer....
When you create a new page, the SavingPage event does NOT get fired. It only fires the CreatingPage. If you go to an existing page, edit that page and press save and publish, you will get the SavingPage event as expected.
Yep, that was it. I knew it was something simple I was missing.
Thanks Lars.
I think I'm going a little crazy --
I cannot, for the life of me, get an event handler to bind to SavingPage. Consider this code:
I hit "Save and Publish,", but the event handler never fires. I've debugged, with a breakpoint, and it just never gets hit. (I assume "Save and Publish" runs the SavingPage event somewhere.)
Here's the weird thing: I can bind to PublishingPage. So, PublishingPage works, but SavingPage does not. Take the above code, change "SavingPage" to "PublishingPage," and it will work fine.
I tried binding in global.asax. Still, it won't bind. It doesn't throw an error, but it will not bind the event handler.
I got really creative and bound to PublishingPage, then inside that event handler, bound it again to SavingPage. I debugged, and watched the code cross that line, so I know the code ran.
I know I'm missing something simple.
CMS 6 with Composer Beta 4 installed.