Questions tagged [event-system]

The event system allows one or more .NET classes to subscribe to and act upon Publishing, BluePrint or Data Modification events.

Filter by
Sorted by
Tagged with
9
votes
4answers
371 views

Event System Alternatives (Memory Leakage)

We have the following scenarios and want to achieve them without using events (probably using TBB’s or extensions if possible). I have not gotten much help from the forum, please suggest and share ...
22
votes
2answers
466 views

What is the best way to do logging from the Tridion Custom Events c# code?

We have a custom event that gets fired on Save Component when we use Tridion UI and we had some issue with the code that we implemented. To troubleshoot it efficiently we need some logging put in ...
16
votes
4answers
982 views

What are the best practices to manage the sitemap for a Tridion website?

As a general requirement some/almost all of our clients require the website’s sitemap to publish automatically whenever a page gets created and published. Generally we implement this functionality ...
11
votes
3answers
423 views

I don't want to publish any related pages when publishing a component

When publishing a component, it publishes the component against its dynamic templates and puts them in the Broker database. This is what I want. But next to the dynamic templates, it also publishes ...
12
votes
1answer
144 views

What might cause my events system not to “fire” when events take place?

I have the following code, which is as generic an events system as you could imagine. When it's deployed, and I attach a debugger to the process, when an event takes place I can see the assembly ...
11
votes
1answer
395 views

Eventsystem call for page_load fires twice

I am creating an eventsystem function that is triggered when a new Page is created. The function should, when a new Page is created, set the metadata Schema of that Page, and create a Component that ...
8
votes
3answers
560 views

I don't want to publish any related components when publishing a component

I'm working with Tridion 2009. When I publish a component I expect that it will be publish the dynamic components template related. But, it is also publishing the components where is used. I have a ...
3
votes
3answers
477 views

How to get and set the Component content before a Component loads in Tridion

In order to create a new Component, I will go to the Folder level and select "Create New Component" from ribbon toolbar. Before the Component completely loads, I want to set some default content for ...
3
votes
2answers
721 views

Tridion Publishing error Logs

Can we get more information/root cause whenever an item publishing fails apart from error message shown on Tridion UI. I want to write a custom code to get more information on error rather than ...
20
votes
2answers
436 views

Accessing configuration from events system when triggered via the core service

Having a bit of trouble with the events system when triggering an event via core service. We have components saved to a publication that we need to copy across to another publication in the same ...
5
votes
2answers
584 views

How to fail publishing of a page in Tridion Event System?

[TcmExtension("PageEventHandlerExtension")] public class PageEventHandler : TcmExtension { public PageEventHandler() { Subscribe(); } public void Subscribe() { ...
10
votes
2answers
140 views

Is it useful to show which version of an item is published, and if so, how should I do this?

I'm helping collect the design considerations for letting users see the version number of an item that was published to each Target Type in the Content Manager Explorer. So far we've covered: Show ...
9
votes
3answers
516 views

Publishing via Core Service

Using the Tridion 2011 Event System I have some code that modifies a text file whenever a Page is published. If I set a page to publish via the Content Manager the code runs fine. If I set a page to ...
8
votes
1answer
110 views

Updating approval status of a item | On Save | Event System

So when we save a Component, by default a major version is created with the "undefined" approval status. And with this approval status this Component can be published to any Publication Target ...
7
votes
3answers
372 views

Get shared pages using localized component

I'm currently working on a event handler. This will, on a save-event, save the latest revision date of the page and its components into a custom database. It is working, but I'm facing some ...
7
votes
4answers
510 views

Retrieving PublicationTarget in Event System Tridion 2011 SP1 HR1

I am working on Event System code and am trying to retrieve the PublicationTarget(s) for the current item being published. The PublishEventArgs has a property called Targets which you would think is a ...
7
votes
2answers
217 views

Setting Bundle Namespace in Event System

I am trying to create a new Bundle in the Event System. However, I get the following error message: Unable to save item. Unexpected namespace URI: uuid:b2054ef9-904f-49d8-8b7f-40523bb88536. ...
7
votes
4answers
301 views

Do 3rd party DLLs in the Tridion 2011 Event System need to be registered in the GAC?

I have a Tridion 2011 Event System project that uses the SignalR DLL from Microsoft. I copied it into the bin folder and restarted the COM+ and Tridion Content Manager Service Host. But in the Event ...
6
votes
2answers
351 views

onComponentSave (SaveEventArgs)

I'm setting up some basic functions for a Tridion 2013 SP1 EventSystem. The idea is simple, set the date on the metadata of a component when the metadata field is left empty. Now it seems that the ...
5
votes
3answers
211 views

Event doesn't fire when i use ICoreService.Save method

I have an Event handler on Component's save event on which I've subscribed as follows: EventSystem.Subscribe<Component, SaveEventArgs>(OnComponentPreSave, EventPhases.Initiated); When I change ...
4
votes
2answers
523 views

Easiest way to update all components after schema update

Can someone tell me the easiest way to automatically update all components after some field in schema is updated? I am thinking of something like event system instead of Core Service tool.
4
votes
2answers
7k views

The partner transaction manager has disabled its support for remote/network transactions. (Exception from HRESULT: 0x8004D025)

I am using SDL Tridion 2013 SP1. I am getting this error from the Event System. This custom Event System is capturing all CME activity and storing it into a separate SQL database for logging purposes. ...
4
votes
1answer
550 views

How to catch a Publish/UnPublish event in an SDL Tridion 2011 event system?

In Tridion event system, I have written the code to fire an OnPagePublishPost event. This task has been done successfully using the subscribe method i.e subscribing to the event. But as my event ...
4
votes
2answers
110 views

PublishTransaction save event triggered multiple times

I have a custom event system handler that sends an email when a publish transaction fails. The event is registered like this: this.EventSystem.Subscribe<PublishTransaction, SaveEventArgs> ...
3
votes
2answers
476 views

Tridion published Item state not returning properly in Event System

I need to perform some action when the component is published successfully.I have used below code and writeout the logs. EventSystem.Subscribe<PublishTransaction, SaveEventArgs>(...
3
votes
1answer
133 views

How to cache variables in the Event System

I have an event that retrieves information from Publication Metadata. I would like to cache this information so that I don't need to access the Publication object each time. I see that the ...
3
votes
1answer
126 views

Catching Published or UnPublished in the SetPublishStateEventArgs

Is it possible to catch if an action is Publish or UnPublish in the SetPublishStateEventArgs? I see in this post I can use the PublishOrUnPublishEventArgs. Here is the code: public MyEventSystem() ...
3
votes
3answers
103 views

Tridion Event System with specific User

I would like to create a Component with a specific User, (e.g admin user) on delete event. If any user deletes a specific Page or Component, the delete event should create a Component in a particular ...
2
votes
2answers
107 views

Is it possible to set approval status by event system?

I want to set approval status to page and component by eventsystem without Tridion workflow activity, for the purpose of integration with external system. But following property is read only,so I ...
2
votes
0answers
34 views

Is Publish Triggered by Experience Manager

I am wondering if there are any indicators I can use within the following Event System code to know whether the Publish Transaction was triggered by XPM vs. a user? The only things I've found (which ...
2
votes
2answers
102 views

Is there any way to determine from an event system and/or a template whether it is being called from Experience Manager or somewhere else?

I am trying to identify in my Event System and in my Templates when the rendering (template) or the action (event system) is being triggered from either Experience Manager or somewhere else in the ...
1
vote
2answers
110 views

How Translation Manager Events Work Internally?

I am writing a Translation Manager Event Handler to write some custom business logic on Start and Finish of the translation job. I have tried below code to analyse the different states of the ...
1
vote
3answers
122 views

Event code multiple page publishing failling

----Event Code SDL Tridion 2011 SP1---- I have written event coding for page publishing and it is working fine for single page, one by one. So, this means when i select a page from CMS, right click ...