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
0
votes
1answer
559 views

Is there a way to find out what caused an `item:created` event?

I wrote a custom item:created event handler that creates an item of template B whenever an item of template A is created. It works well, except for the cases when the parent folder is being duplicated—...
2
votes
2answers
941 views

Sitecore Context at Event Method

I have an Sitecore (v8.1) Event and method that processing this event but Sitecore.Context is not available. I am try to use call SiteContextSwitcher but it does't help. SiteContext siteContext = ...
3
votes
1answer
546 views

Manipulate item name on create

We are using out of the box item name functionality in Sitecore. We are also using $name to add that to the title of the page. Our client would like to have the following happen. They would like to ...
0
votes
1answer
114 views

SiteDefinition Config Events - Site Changed to MyCompanyName

I noticed a strange difference between our Production and QA Sitecore websites that was deliberately done by our Sitecore vendor. In the SiteDefinition.config file, the site block is changed to ...
4
votes
1answer
288 views

How to get a front-end event to show up in Path Analyzer?

We're using Angular to handle site's front-end, and I'd like to add some events which happen there, like opening "new" pages based on JavaScript to Path Analyzer. This is how I tried to do it: var ...
8
votes
1answer
1k views

“Could not create instance of type: Sitecore.Data.SqlServer.SqlServerIDTable. No matching constructor was found” exceptions on Alarm clock event

My UAT logs are filled with the below logs. Could you please direct which area I should start looking to debug this issue. WARN Could not find constructor in ReflectionUtil.CreateObject: Sitecore....
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 ...
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 ...
7
votes
2answers
106 views

How to run custom logic when a user has been added to a particular role?

In Sitecore, is there a way that I can run custom logic when a user is added to a particular role?
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 ...
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 ...
7
votes
2answers
961 views

after upgrade from 6.5 to 7.2 Item.Editing.EndEdit() no longer fires event

We have a solution that was upgraded from 6.5 to 7.2. After this upgrade we are having issues where Item.Editing.EndEdit() no longer triggers item:saving/item:saved events. Therefore changes made to ...
11
votes
3answers
1k views

When is it safe to remove an `EventQueue` record?

Sitecore stores its events in a database table called EventQueue. It is used for centralized event-based communication between Sitecore instances. Sometimes this table grows quite large and it needs ...
3
votes
1answer
59 views

What is the purpose of storing local events in the `EventQueue`?

In Sitecore databases, the EventQueue table contains both local and remote events of Sitecore instances. Why is there a need to track local events? Can't they just be handled internally in the ...
12
votes
2answers
1k views

Why is event data stored in every Sitecore database?

A table named EventQueue is present in every Sitecore database. It seems to contain local and remote events of Sitecore instances. Why are some of these events stored in the Core, some in the Master, ...
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 ...
6
votes
1answer
910 views

Execute custom logic whenever an item is added from a particular branch template

I am looking to run some custom logic (likely some rules) whenever an item is added from a particular branch template. How can I trigger this logic to run, in Sitecore.
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 ...
4
votes
2answers
549 views

Get indexed items after index update

We are using some (custom) caches that get cleared when data changes in Sitecore - it's written so that it only clears the cache when items from a certain template are published (we don't want this ...
27
votes
2answers
811 views

Restricting Item Access Rights to Roles - Prevent Users from being assigned Access Rights directly

Best practice is to assign access rights to roles rather than users. So I would like to block changes that apply access rights for users. Sitecore does not seem to trigger the saveUI pipeline on ...

1
2