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
22
votes
2answers
483 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 ...
20
votes
2answers
438 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 ...
20
votes
1answer
261 views

Using log4net for Tridion Custom Events only works for Publish or Save events, not both

My question is somehow related to this question, but it is a different issue. I have used log4net in an Event DLL; I have written custom events for publish and save events, but I don't get logs for ...
18
votes
1answer
142 views

Do custom events fired on the Tridion UI also get triggered when we use Tridion Core Services?

We have a custom event fired on Component Save when the Tridion UI is used. We have another application running as a Windows Service which creates and saves components using Tridion Core Services. ...
16
votes
4answers
990 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 ...
12
votes
3answers
433 views

Event System with multiple DLLs

I am implementing several different functionalities in the Event System, one of which connects to an external system. I would like to isolate these from each other and am thinking to create separate ...
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
4answers
546 views

Using Core Service in Event system 2011

I am trying to consume Core Services through the Event System. The Event System is a Class library as expected. I added the content nodes from Tridion.ContentManager.CoreService.Client.dll.config to ...
11
votes
3answers
424 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 ...
11
votes
2answers
251 views

Facing issue in implementation of EventSystem

We are using Tridion 2011 SP1, We are facing error Unable to create an Eventsystem Object. As debugging is not working we have implemented custom logging. We found that Subscribe function is getting ...
11
votes
2answers
201 views

How can I tell if event system code has been loaded?

We've written some event handlers to handle editing, building on the example that was started in http://www.tridiondeveloper.com/intro-to-the-event-system The code worked well in development but didn'...
11
votes
2answers
426 views

Tridion Extensions

I would like to have an extension (GUI) on Component Save and Close checking if all fields have proper values. I have not written any extensions still and will start with by simply throwing an alert ...
11
votes
1answer
397 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 ...
10
votes
2answers
152 views

2011 Event system Component.Move - component not moved

I'm trying to move a component using Tridion 2011 Event system. First I tried to do this using SaveEventArgs in phase processed: EventSystem.Subscribe<Component, SaveEventArgs>(CompSavePost, ...
10
votes
2answers
223 views

Is it possible to “undo check out” in an event handler for “check in” in the initiated phase?

I have implemented an event handler for the following use case: Validate some custom permissions If the user doesn't have these permissions then undo checkout of the item and then throw an exception....
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 ...
10
votes
1answer
96 views

Why am I sometimes having issues retrieving the page template title when using a page save event in the initiated phase?

We're using an event to manipulate the file name of a page before it is saved on a Tridion 2011, SP1 HR1 installation. We've actually been doing this for years ever since we first implemented ...
9
votes
4answers
374 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 ...
9
votes
2answers
128 views

Is there a detectable difference between a scheduled unpublish and unpublishing directly?

I'd like to distinguish between a scheduled unpublish action and an immediate unpublish action via the Event System. Is this possible?
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 ...
9
votes
1answer
92 views

Inform Authors of Scheduled Publishing

The use case I'm investigating are components or pages that are scheduled to be generated and published at a later time. Aside from Tridion workflow (to restrict authors from editing non-approved ...
9
votes
2answers
206 views

How to get the metadata of a page(minor version) in Tridion for Context Menu Item?

Workflow is enabled in the system. There is a context menu button added to the editor which makes use of Page metadata. The Event System will update the current page path in the page metadata on when ...
9
votes
1answer
72 views

Broadcasting Notification to message center not working

I am using SDL Web 8.5 and I want to broadcast a warning message to the user upon saving a component. I am using the event system to trigger the message on save. However, after setting everything up, ...
8
votes
3answers
176 views

In Tridion 5.3 which is better to use Event System or Custom Resolver?

We have two different publications with shared content: one for the desktop and other for the mobile web. We would like that if we republish a desktop page the correspondant mobile page gets ...
8
votes
3answers
436 views

Capture successful Tridion page post publish event or action and trigger some custom code

We have a requirement where once the page is successfully published from Tridion on page post publish we need to make a httpwebrequest to our presentation/DD4T content delivery site to retrieve the ...
8
votes
3answers
561 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 ...
8
votes
2answers
177 views

Migrating Event System from 5.3 to 2011 SP1

We are currently in the process of upgrading from Tridion R5.3 SP1 to Tridion 2011 SP1. One of the parts to upgrade is the event system which we will also be migrating from VB to .NET (C#). ...
8
votes
2answers
176 views

PublishTransactions Filter by PublishTransactionState Renders no results

I am working on some event system code and I have the following snippet of code to examine the PublishQueue and see if the current item I am scheduling is already scheduled: public static bool ...
8
votes
1answer
113 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 ...
8
votes
1answer
91 views

Tridion 2011 event system - DCP

We're trying to catch the event when a DCP publishing action was committed successfully. In the subscribe we have the following line of code: _eventSubscriptions.Add(EventSystem.Subscribe<...
7
votes
4answers
303 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 ...
7
votes
4answers
511 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
3answers
96 views

Unable to capture Save event of returning components from Translation Manager

I have a need to bypass component workflow on the translated content. To achieve this i have planned to subscribe Save event at TransactionCommitted phase and then force finish the workflow activity. ...
7
votes
2answers
418 views

How do I update my Component (metadata) fields while copy/pasting a Component, using EventSystem?

I am trying to use the Eventsystem to update some (Metadata) Fields when a Component is copied (using copy+paste). I do NOT get any content (or metadata) saved this way. However, I do get my new ...
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
2answers
175 views

In the Event System what is the easiest way log all items deleted when an Organizational Item is deleted?

I was writing some code to log User, Id and Webdav when an item is deleted from the CME. My issue is around Organizational Items. Within the DeleteEventArgs I can see that there are 'N' ...
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
2answers
86 views

Reading Tridion Items During Event System Extension Initialization

I am trying to read a component when an event system extension is first initialized in an 8.5 instance. So in my event system extension's constructor, I try to get the component from the Administrator ...
7
votes
2answers
358 views

What are Benefits of Deployer extension over Tridion events

Why i should be choosing deployer extension over tridion events? i have to perform some operations on publishing. i heard there are performance benefits of deployer extension but want to understand ...
7
votes
1answer
191 views

Checking if a keyword has classified items globally

I am working on an event to delete unused keywords, however I am running into problems determining whether or not a keyword is used for classification across any of the publications. We are using ...
7
votes
1answer
220 views

Tridion content manager homepage showing error after adding the Event System DLL

SDL Tridion 2011 SP1 Event DLL created with .NET version 4.0 After adding the below line in Tridion.ContentManager.config file: Add a reference to the DLL under the extensions element: <add ...
7
votes
1answer
152 views

XPM, Eventsystem and creating new page - Eventsystem not triggered

I have an EventSystem handler that sets a default metadata schema if a new page is created. This works perfect if I create the page in the CME. But if I create a new page (based on a Page Type) in XPM,...
7
votes
1answer
66 views

Installing 2009 events code in Tridion 2011

We recently upgraded a Tridion 2009 site to 2011, and are now trying to migrate the events code. Unfortunately Tridion doesn't seem to be hooking into the events. I've done the following: Update the ...
7
votes
4answers
98 views

Tridion CM Usage reporting

My client would like to pull together some metrics regarding our Tridion CM usage. We're interested in the following information. Create – New (Images, Pages, Components) Edit/Update (Images, ...
7
votes
1answer
120 views

How do I modify the content of a Copied Component when it is being copied?

In my code I am invoking the CopyEvent while copying a component from one location to another. While copying I need to modify the content in the Destination Component. I tried using the CopyEventArgs....
7
votes
1answer
129 views

Publishing to child publications fails from the event system

I have created an event system which creates a page when a component is created, and publishes that page. I want to publish it from the publication where the page is created, with the ...
6
votes
2answers
354 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 ...
6
votes
3answers
338 views

2013 Event System; Folder paste event is not called

I'm trying to rewrite the old event system (2009) to the new 2013 event system. Where it used to be a OnFolderPasteItemPost event. I now register the event as follows: EventSubscription _subscription;...
6
votes
2answers
500 views

Add new metadata using the Tridion (2011) event system

I have a question that I am struggeling with. A positive answer would help me to remove a piece of unwanted customization. Is it possible to add metadata from the event system to a component where ...
6
votes
2answers
263 views

Unable to debug OnPagePublishOrUnPublishPost event of Tridion Event System

I have subscribed to an event as below in the Tridion Event system and when I try to debug the code the break point is not getting hit. EventSystem.Subscribe<Page, PublishOrUnPublishEventArgs>(...

1
2 3 4 5