Skip to main content
11 events
when toggle format what by license comment
Jun 15, 2018 at 7:57 vote accept nari447
Jun 15, 2018 at 7:52 comment added Marek Musielak excellent! I converted my comment into an answer
Jun 15, 2018 at 7:51 answer added Marek Musielak timeline score: 1
Jun 15, 2018 at 6:15 comment added nari447 @MarekMusielak .. sorry for the delay in replying.. it worked for me.
May 24, 2018 at 5:25 comment added nari447 sure @MarekMusielak
May 23, 2018 at 13:33 comment added Marek Musielak don't forget to let us know if this solution worked for you
May 23, 2018 at 12:32 comment added Marek Musielak Try to add a public static bool variable in the ItemEventHandler class, and set it to true when the condition is satisfied. Then add another event handler on publish:end which will reset the variable back to false. It should do the trick assuming that you have only 1 Sitecore instance publishing items at the same time and you're not using publishing service.
May 23, 2018 at 12:13 comment added nari447 @MarekMusielak.. the event handler is configured on "publish:itemProcessed". For ex I have 10 items in particular publish event, and on 5th item, condition is satisfied and message is written to queue, it should not process the event handler for subsequent items(i.e 6-10)
May 23, 2018 at 12:10 history edited nari447 CC BY-SA 4.0
added 283 characters in body
May 23, 2018 at 11:56 comment added Marek Musielak Is your event handler configured to run on item:published event? So you want to write to Queue only for the first item published? E.g. you publish item with 2 children, and you want to write to Queue only for the parent item, not for the children, correct?
May 23, 2018 at 11:29 history asked nari447 CC BY-SA 4.0