Questions tagged [events]

For questions related to the Sitecore Event system. This includes the Event Queue, event handling, custom events.

Filter by
Sorted by
Tagged with
16
votes
1answer
6k views

How does the Sitecore event queue work? [closed]

There's an EventQueue table in every Sitecore database. It contains both the local and remote events of Sitecore instances. I would like to know how the event queue works, exactly. Why are some ...
11
votes
1answer
307 views

How can I write my own custom disabler?

Sitecore ships with a bunch of disablers, like the SecurityDisabler and the EventsDisabler, but what if I want to write my own? I have a bunch of item:saved event handlers that run but when I add a ...
10
votes
3answers
1k views

Detecting when an item being saved is during package installation

I have a custom item:saving event handler which contains some specific logic when a user user makes a change to an item. This works fine but when we create a content package from a different ...
4
votes
2answers
832 views

“Silently” Create Item - Create Item Without Triggering Indexing or other Events

I know that when I edit items, I can pass true to the EndEdit method to save the item without triggering events/indexing on save. Since I almost always want to edit an item after creating it, it seems ...
2
votes
2answers
427 views

Error while publishing when items are moved in SXA based website

SXA v1.7.1 with Sitecore v9.0.2 I'm regularly getting this error in Sitecore when trying to publish after I have restructured some items in master database. If I delete the modified sub-tree from web ...
18
votes
2answers
2k views

Can I register an event or goal through an API from Javascript?

I have found that I can assign a goal or a page event to get triggered when a user hits a given page. So, we have a thank you page a user is redirected to after submitting a form and that ...
2
votes
2answers
2k views

What is the event called when application starts?

I am trying to attach a handler/code when the Sitecore web application instance is starting up. What event is triggered when the application instance starts?
11
votes
2answers
903 views

Can you run Sitecore Powershell without triggering Sitecore events?

I want to write a script which could potentially clean up a load of unused assets, but I would like it not to trigger events (index rebuilds etc). Is there a way to say "do this silently" in a ...
3
votes
2answers
827 views

Change datasource in final layout through API

I am trying to add some code (after an item is created - but that is not relevant) that manipulates the layout fields. To be precise, I want to change the datasource of some renderings (based on a few ...
5
votes
3answers
3k views

When to use item:Created vs Item:Saved

I have a scenario where I need to modify a certain value of an item when it is created (not saved) off a particular template. In order to do that I tapped into the item:created event, however I ...
1
vote
1answer
325 views

How to add renderings programmatically when another rendering is added

Which pipeline should I use when a new rendering is added in the presentation? I have a scenario to add renderings programmatically if a particular rendering is added in the item. I will write a ...