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
3
votes
1answer
65 views

Event doesn't fire when I use save component using workflow (SDL 8.5)

I have a schema with a workflow assigned. I need that if the Performer belongs to a certain group it finishes the process and bypasses the workflow (ending with the Approval Status we have as the ...
2
votes
3answers
116 views

Set General Field on a Component to specific word when the Component is saved

I want to set a General Field (Simple Text Field) on a Component to specific word (ex. "aaa") when the Component is saved, by using Event System. I success to do the above, but I have one problem. ...
2
votes
1answer
118 views

Event code running after a while in Tridion 2011

I have written a event system which will be triggered on any page save to publish it. It shows in the event viewer that the event is initiated but taken 30 mins to 1 hr or more to complete it's ...
2
votes
2answers
70 views

How to ForceFinish the Workflow Process by setting Approval Status as “Undefined”?

We have a implemented workflows and in a particular scenario when the component is being imported through Content Porter, I am finishing workflows forcely by using below code snippet: var ...
2
votes
1answer
103 views

What is the difference between EventSystem.SubscribeAsync and EventSystem.Subscribe events in Tridion Event system?

What is the difference between EventSystem.SubscribeAsync and EventSystem.Subscribe events in Tridion Event system? When we subscribed the events in EventSystem.SubscribeAsync and EventSystem....
2
votes
2answers
356 views

Triggering of events on component publish

I have a requirement to trigger mail to the targeted audience on Component Publish event.I am planing to handle this requirement using Event System. But I am unable to figure out event available like ...
2
votes
2answers
80 views

RelationShip of Components

There are two components, component A and component B, both are published, component A contains component B, now I want to unpublish component B, because component A contains component B, so I wish ...
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 ...
2
votes
2answers
89 views

Event System to disable transaction save

We have a requirement where we need to disable creating transactions in some Publications. We cannot remove these publications from Publication Target, because we need them, but we would like to do it ...
2
votes
2answers
158 views

Event system code is not working

I have created a sample event system code to update a field of a Component when it is using a particular Schema. DLL created and deployed properly Added the assemblyFileName in to the config as well ...
2
votes
2answers
177 views

Eventsystem - Passing info between events with Context Variables, Tracking modifications to a SG

Tridion 2013 sp1 I am trying to create an event system that will let me monitor modifications to a folder or SG. (changing the default page template. etc) While I can get the pre-save and post-save ...
2
votes
2answers
204 views

How to get Page from structuregroup with event system

We have autoPage Publish implementation, done with CMS.Extensions.EventSystem. With Auto Publish, we wanted to publish one more page which is SitemapXML page. We have Publication and structure group ...
2
votes
1answer
46 views

How to show custom validation error message from Tridion Event Handler code in popup window instead of Message Center

I would like to show a custom validation error message from the Event Handler code in a popup window. My requirement is while saving binary Component; if the binary filename contains any special ...
2
votes
2answers
110 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
2answers
162 views

Accessing Keyword and category in Event code 2011

I want some help accessing the categories and keywords from event code. The below code worked in Tridion 2009 event code, but i am unable to get some classes in new event code. Keyword keyword = null;...
2
votes
1answer
49 views

Equivalent of FieldTypeComponentLink in .NET?

I am trying to transfer some event system code from VB to VB.NET, and I can not determine the equivalent of FieldTypeComponentLink for example If objItem.FieldType = FieldTypeComponentLink Or ...
2
votes
3answers
96 views

PublishTransaction event does not publish the component with user id instead it is publishing with system user account

When a component is published successfully, we want a related component to be auto published (am not going into the details of why we need this). We are trying to implement this through event system. ...
2
votes
1answer
59 views

Event system: GetInstanceDataEventArgs not firing

I'm trying to set a date-field of a new Component automatically when created, using the event system. The approach is to set the field in the GetInstanceDataEvent public Events() { ...
2
votes
1answer
102 views

Which tcm process executes which event system code

In the implementation I'm working on there is a lot of event system (ES) code and there is an out-scaled publisher server. The publish/transport services are turned off on the CM server and all the ES ...
2
votes
2answers
106 views

Does Tridion have an event which can be triggered when importing items via Content Porter

Does Tridion (2011 SP1) have an event which can be triggered when we are importing items via SDL Content Porter 2009 SP2? Currently we have a requirement to save release related information. For ...
2
votes
2answers
126 views

Not able to create a new page after 2013 sp1 upgrade

When we try to create a new page it says "Unable to provide a new item's data Object reference not set to an instance of an object". The stack trace doesn't help either. It says when the core service ...
2
votes
2answers
248 views

Resolve Engine.ResolveItem does not work in Unpublish tridion

I'm trying to capture the resolved items using the Publish Context of my current Publish Transaction. My code works in case of Publish of a Bundle and all the resolved items for the respective ...
2
votes
2answers
224 views

Get Component Render result inside the Post Publish Event

When client publish one News Component, they want to push the News to different location, include some external system. This action must be invoked when client publish the News component, so we have ...
2
votes
1answer
41 views

From where is it better to stop publish in Web 8 or Web 8.5

I'm working with Web 8 and Web 8.5, in both I need to be able to stop a publish based on a custom logic (I should not allow it to be made), my options are: Use event system Probably something like: ...
2
votes
1answer
104 views

Using Tridion Core Services how to obtain Members of group in which Group memberships obtained from an external (LDAP) directory?

My Idea is to get the list of users for particular project in Tridion Publication using Core Services. I tried to get it from GroupMembershipData. But unfortunatly it is not including Group ...
2
votes
1answer
104 views

How to implement the logging information in files instead of event viewer using SDL Web 8.5

Currently we are using event viewer for maintaining the log information. We want to implement the log information on the file system (using text files). What are the changes are required and how to ...
2
votes
1answer
86 views

Why Approval Status set in VISIO for Workflow is Overridden?

We have designed a very basic Workflow with the following activities: 1) The first activity is Manual and in diagram we have set the Approval State as "Publish_Stage", which means that the page with ...
2
votes
1answer
53 views

Strange error while using page types

I am trying to create a page using a page type but I am ending up with the below error always: An error occured while processing the change for page: SOME_PAGE_NAME (tcm:SOMEID). Check the error ...
2
votes
1answer
99 views

On event system, get item's properties which are before modified on save event

On save event, I want to get item's property value before it's modified. Concretely, when a folder is saved, I want to judge if the folder' metadata schema is modified or not by comparing metadata ...
2
votes
2answers
153 views

Get users from Directory Service Group using Tom.net

We have a requirement in which we have to maintain all users under AD directory instead of Tridion and SDL tridion is integrated with Ad through LDAP, that means the user groups which we are going to ...
2
votes
3answers
901 views

I would like to use SVG images on my website, but I get the error “Parameter is not valid”

(80040000) Parameter is not valid. Unable to save Component (tcm:0-0-0). System.Drawing.Image.FromStream(Stream,Boolean,Boolean) System.Drawing.Image.FromStream(Stream) Tridion.EventSystem....
2
votes
1answer
1k views

Could not load file or assembly '…' or one of its dependencies

I have an assembly MyEventAssembly.dll that subscribes to various events in the tridion event system. It references another assembly MySharedAssembly.dll. MySharedAssembly.dll references Tridion....
2
votes
2answers
77 views

How to make unpublish event fail in event system?

When extending the Tridion event system, using the following code: EventSystem.Subscribe<Component, UnPublishEventArgs>(OnComponentUnPublishForInit, EventPhases.Initiated); private static void ...
2
votes
2answers
373 views

Accessing Categories and Keywords from metadata of a Component in event code of Tridion 2011

In event code for Tridion 2011 OnPagePublishPost method, I want to get Category and Keywords value from Metadata of a Component. The metadata field in the Schema is as below: Field Type : Text The ...
2
votes
2answers
99 views

Component not getting saved in event code 2011

In the PagePublishPost method , i am accessing a component and trying to save it, but that component does not get saved. Below is my code: if (component.IsShared) { ...
2
votes
1answer
66 views

Event System is unable to retrieve latest/updated information due to improper caching or session management?

I am facing an issue on our production environment where we have 3 instances of Content Manager. I have developed an event handler which gets invoked on successful published transaction, in which I am ...
2
votes
1answer
211 views

Event System 2011 - Why does Tridion complain about a missing assembly when no references are added?

I am currently having an issue with Event System when I include a reference to another class inside my Event System class on Tridion 2011 instances (replicated on both 2011 SP1 Hotfix 2 and 2011 SP1 ...
2
votes
0answers
97 views

Need Publication Targets based on the Target Type (for Event System) using TOM.NET API

I started event system code for my project, where I am getting Target Types for a Publication. Please suggest how to get the Publication Targets based on the Target Type: My Requirement is : I need ...
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
0answers
75 views

Fire Tridion Event extension when user logs in

I want to capture user information when the page loads. Created event extension for same but event is getting triggered many time which is impacting the performance of our system. I only want event to ...
1
vote
3answers
215 views

How to access Tridion Config Component in Event System

I have created an Event handler on Component save which checks the Image Size for Multimedia Components on saving. I want to read the allowed Maximum size from the Tridion configuration Component, I ...
1
vote
4answers
58 views

Event Handler get the user who throws the event

I need to avoid certain group to publish a structure group but I don't know how to get that user to check if belongs to a certaing group. This is the code I have: public ...
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 ...
1
vote
1answer
469 views

How safe is using ElevatedPrivilegesScope to access a Component Tridion, if it is not accessible by the user

I have a configuration Component in the Gloabal/Shared publication, We have Event System code which reads this Configuration Component using current component session, but in case if the current user ...
1
vote
1answer
111 views

How to get All Root Pages from Event System Code

We need to implement Short URL Functionality for one of the marketing Campaign. For example www.domainurl/x/y/z should go to www.domainurl/a We have a redirect Page and Component through which ...
1
vote
3answers
122 views

Synchronized Event System

We have created a Event System which start on component save. Here in component save event handler we are applying few complex logic and making some changes in some text file. As complexities are ...
1
vote
2answers
109 views

Tridion R5 event system

I am writing event code for Tridion R5 in C# but i am facing some challenges while implementing it in tridion. Is there any reference for Tridion R5 event system documentation or some sample code i ...
1
vote
3answers
56 views

Is RSS feed a feasible & good option to inform users about the changes made on Parent level in Blueprint?

I am sure everyone here might be handling this requirement in different ways & hence thought to get an optimised solution. Today many of our country users are left outdated with the changes made ...
1
vote
1answer
71 views

Is it possible to capture Audit information on User management actitivy in Tridion

One of the client need Audit Information on all user management activity. User Creation Group Creation Change the Permisssion an Rights for User or Group Assign User to different Group Add USer to ...