sitecore - Perform logic when specific template is published -
i have template set need perform logic on when it's published. when item based on template published want me perform basic crud operations on table in external database in sync. that's kind of beside point.
what have set right new processor in publishitem pipeline. i've found can access publishitemcontext.publishoptions.rootitem access template, can compare on , perform logic necessary. problem called deep publishes. i'm seeing processor firing root item, not of sub items.
so, questions if there way access every item that's being published, not root item?
a co-worker suggested grab timestamps @ beginning of pipeline , end, , use historymanager check on has changed... seems pretty heavy-handed me. can't feel there ought property or setting nested in here somewhere can access that's being published.
i'd appreciate assistance folks can offer.
oh, we're on version 6.5 project, i'm sure that'll relevant.
looks you'll want add handler node to
<event name="publish:end">
event in web.config. documentation can found here: http://sdn.sitecore.net/articles/api/using%20events.aspx
Comments
Post a Comment