12
votes
How can I tell if event system code has been loaded?
The event system code loads when the Tridion Content Manager Service Host service loads, and you can see this in the Windows Event Viewer. As each event handler loads you will see the status showing ...
11
votes
Is it possible to "undo check out" in an event handler for "check in" in the initiated phase?
Unless you're trying to implement really granular permissions (more on that in a minute) it makes more sense to handle this on the check-out event instead. The rudimentary issue that I see - and this ...
11
votes
Accepted
Easiest way to update all components after schema update
What have you tried? If you're just starting your search then the docs references below are a great start.
Both the TOM.NET and Core Service APIs are available but it shouldn't be about what's ...
10
votes
Event code running after a while in Tridion 2011
I may just not be seeing it in the code, but you're not implementing IDisposable and there's nothing in your code calling Dispose(). If you're not disposing of the subscription it never actually ...
9
votes
Accepted
Set General Field on a Component to specific word when the Component is saved
It sounds like you are hooking into the Processed (or later) phase of the Save operation, which will only be called after the save has happened.
You should instead hook into the Initiated phase of ...
9
votes
Accepted
Overriding Publishing Queue
For #1 publishing priority is the way to go. Maybe changing the default priority to "low" will give you enough of an override to push things through quickly. Using publishing priorities in conjunction ...
9
votes
Accepted
Unable to capture Save event of returning components from Translation Manager
You can try the below events related to Workflow:
1.Event for Workflow process starts
EventSystem.Subscribe<ProcessInstance, StartWorkflowEventArgs>(OnProcessInstanceStart, EventPhases....
9
votes
GUI not rendering <br> and new line showing error messages
You would have to make CSS updates through a GUI extension besides using the new line (\n) in your exception message.
In your event system exception, you will be using the new line like this:
throw ...
8
votes
Event system not working on Tridion 2011 sp1
You see event viewer message that your extension was initialized, so no problem here. However, it might be the case that you (NETWORK SERVICE) don't have rights to write to event log, or your code is ...
8
votes
Is there a field change event I can subscribe to?
You could consider [[removed:OOTB]] Supported category use with the Tree View. The user would select from the top-down and the field populated with the final select.
Of course, by supported I mean ...
8
votes
Tridion Event System with specific User
Another option is to temporarily elevate permissions of the current user in the event handler:
using (ElevatedPrivilegesScope scope = new ElevatedPrivilegesScope(nonAdminSession, Privileges.SysAdmin))...
7
votes
How to get the user of a Tridion Publish Event?
Here just for your reference I pasted a code to get the user and also Groupname if you publish any component.
private void PublishingFinish(Component subject, PublishEventArgs e, EventPhases phase)
...
7
votes
Accepted
How to get the user of a Tridion Publish Event?
To get the user who published, you need to use
PublishTransaction.Creator
Here Creator returns the User Object.
private void OnPagePublishPre(Page page, PublishEventArgs mPublishEventArgs, ...
7
votes
Set General Field on a Component to specific word when the Component is saved
Perhaps you can do this through a GUI extension - and thus better inform a user that a value was entered. I presume you're aware that fields can have 'default' values already - which may negate your ...
7
votes
What are Benefits of Deployer extension over Tridion events
It may help for us to know more about the operations that you need to perform when publishing.
Here are a few guidelines though...
A Deployer Extension only has access to items that are stored ...
7
votes
Accepted
How do I update my Component (metadata) fields while copy/pasting a Component, using EventSystem?
So you set the title after making sure your Component is checked out, but you tried to sync back the changes of the content before ensuring it is checked out:
...
// sync content back to Component
...
7
votes
How do I update my Component (metadata) fields while copy/pasting a Component, using EventSystem?
Bart already pointed out the proper order to do this check-out/modify/check-in cycle after the copy operation is performed.
Do note that this approach leads to a version 2 on the copy: version 1 is ...
7
votes
Event System with multiple DLLs
For 2011 and up I would actually say it is preferred to use multiple DLLs, specifically so you can isolate different features and have a better control over what events you want enabled or not.
You ...
7
votes
Event system - capture copy - paste event for keyword
You should be able to do this by subscribing to initiated phase of the copy event of a Keyword and removing the related Keywords.
For example:
EventSystem.Subscribe<Keyword, CopyEventArgs> (...
7
votes
Accepted
Ways and steps to debug custom event handler code if any
Have you googled, you must have found following http://yatb.mitza.net/2012/03/debugging-tridion-2011-event-system.html
7
votes
Overriding Publishing Queue
What you are requiring is mainly to use publish queue in a way its not meant to be used.
For #1 you want to publish items before all others. That is the exact purpose of "high" priority. Problem is ...
7
votes
Accepted
Creating an Item with the Tridion Event System
Use the StructureGroup constructor to get a new SG, something like this:
StructureGroup newSg = new StructureGroup(session, parentSGTcmId);
Here is a snippet from the API docs:
7
votes
Tridion Event System with specific User
I would not try to impersonate an admin user from the event system. It opens up all kinds of vulnerabilities that you probably don't want. Instead, I would create a separate service (e.g. a REST ...
7
votes
What is the difference between EventSystem.SubscribeAsync and EventSystem.Subscribe events in Tridion Event system?
The difference is that on an ASYNC (SubscribeAsync) event, your code will run without blocking the main event from happening, while on SYNC events (Subscribe) the main event will wait for your code to ...
7
votes
How to access Tridion Config Component in Event System
As Atila, mentioned using core service in event system is never recommended but instead TOM.NET and to get the component "configComponent" in event system you can take the reference of the below code. ...
6
votes
Accepted
Capture successful Tridion page post publish event or action and trigger some custom code
The event you attached to is probably the "Submit item for publishing" event, which, as you figured out, ends once the page is sent to the publishing queue.
The event you want to listen to is on the ...
6
votes
Accepted
Ignore event system trigger when removing older versions
Well, before the execution of any code in event handler. You should check the version of the component.
You can get the version of a component by component.Version.
I haven't run the code for this ...
6
votes
Accepted
Catching Published or UnPublished in the SetPublishStateEventArgs
I might be missing something in your question, but isn't it as simple as looking at args.IsPublished?
The SetPublishState event is only called after a successful transaction, so the Page will either ...
6
votes
Accepted
Event System with multiple DLLs
I'm not aware of any performance issues or other things to consider. So I'd say go for it, as long as it logically makes sense to split them up and you don't create hundreds of them :)
6
votes
Event System with multiple DLLs
When it comes to specifics around Tridion, the thing to consider with multiple event DLLs is that it may not be clearly visible what all the subscribed events are. For example, several DLLs may ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
event-system × 2542011 × 56
2013-sp1 × 31
web8.5 × 31
2013 × 29
publishing × 29
tom.net × 28
core-service × 20
workflow × 13
cme × 12
publishtransaction × 10
sdl-tridion × 9
gui-extensions × 9
2009 × 8
translation-manager × 7
web8 × 6
sites-9.1 × 6
logging × 6
custom-resolver × 5
templating × 4
configuration × 4
2013-sp1-hr1 × 4
experience-manager × 3
2011-sp1 × 3
ecl × 3