Right now we are using Tridion 5.3. For number of publications we have event system implemented like sending some mail notification if component is localized, or sending a mail notification when particular activity is completed in workflow process etc.
Our current event system is implementation in Visual Basic 6.0, now when we have to rewrite our code we have to use .NET for the same.
My question is where I can get some sample code for beginners or documentation how event system can be implemented in Tridion 2011 SP1.
These are the top three links when I google for Tridion 2011 event systems:
http://www.sdltridionworld.com/articles/sdltridion2011/sdltridion2011eventsystem.aspx
http://www.julianwraith.com/2011/02/event-systems-in-sdl-tridion-2011/
http://www.curlette.com/?p=90
Each of them is a decent introduction to writing event handlers for Tridion 2011, which in itself is a lot clear/less involved than writing an event system for previous Tridion versions.
If you are having a concrete problem with your Tridion 2011 event handler, I suggest posting the code and describing the problem.
In addition to Frank's excellent suggestions, there is also a sample event handler and full documentation available in the online docs (Username/Password required).
Related
Is the
OnPageSetPublishedToPost
event supported in Tridion 2011. I am having real difficulty getting this event to fire.
I am deploying legacy events system code to Tridion 2011 SP1 HR1.
Thanks,
Chris
Legacy Events handlers, are not fully compatible with Tridion 2011.
TOM event handlers will no longer be triggered for publishing,
resolving and (for Audience Manager contacts import) Keyword save.
The Legacy Event Adapter can help firing some of these events, but unfortunately I think OnPageSetPublishedToPost is not one of them. You can find a lot of useful info on the companion article though
May not be the answer you are looking for, but for this specific event handler you can consider a rewrite to the new event system model. You can mix both old style and new event handlers on the same system.
Try events like the following. This should work. What did you try so far?
EventSystem.Subscribe<PublishTransaction, SaveEventArgs>(YourMethod, EventPhases.TransactionCommitted);
and
EventSystem.Subscribe<Page, PublishEventArgs>(YourMethod, EventPhases.TransactionCommitted);
Not directly an implementation question but hopefully someone can offer a few pointers.
I wanted to ask if by integrating SDL SmartTarget into Tridion you are effectively getting SDL Fredhopper as well?
Do you still get Fredhopper Business Manager etc?
Could you feed more traditional product data straight into Fredhopper, outside of Tridion then build a site with personalisation/targeting via SmartTarget mixed with a product catalogue driven by Fredhopper and all the cross-sell/up-sell/recommendations it can do?
Cheers
Yes, SDL SmartTarget includes SDL Fredhopper, and you can indeed add data to it via the Data Manager.
The main differences between both offerings is obviously the connector and Ambient Data Framework support for ST queries, a set of Java Taglibs/.NET controls you can use to communicate with Fredhopper and a few other things like session preview support for FH queries (ability to change the variables on-the-fly for testing).
N
We are upgrading to Tridion 2011 SP1 and as a part of Tridion search implementation we are using FS4SP (Fast Search for sharepoint 2010).
In proposed implemenatation search environement consists of following servers:
FAS4SP
FISE
Can someone guide us regarding how to push content to FAST from tridion and how to retrieve the same?
(Here due to some reasons we are not considering crawling of website by FAST)
What all APIs can be used for this implementation?
If you don't want to use the crawling approach, you will need to create a custom deployer, please take a look at this other article:
How can we integrate Microsoft FAST with SDL Tridion 2011 SP1?
Alternatively, if you don't have a development team who is familiar with Java, you might considering creating a .NET application which updates your FAST index based on either a File System or Database trigger when your pages or components are published, updated or deleted from your broker repository.
You will probably want to create XML for FAST and have the Custom Deployer (or Event System) send the content to FAST.
First create the FAST XML that works and write a sample app so you can insert it into the FAST index from either a .NET or Java application. This does not yet involve Tridion.
Then write your Custom Deployer or Event System and pass the XML to FAST.
IF you are using a Custom Deployer approach I would suggest to contact Tridion Professional Services if you have not done it yourself or are not a Java programmer. The new Tridion 2011 Storage API provides new opportunities for the Custom Deployer. In the meantime I would suggest to append the FAST XML to the normal Page Content at the end, surrounded by some markers, and have your custom deployer pull it out of the Page output, send to FAST, then remove from the output before continuing.
This is a fairly difficult challenge for those who do not have serious Content Delivery / Deployer / Java skills. However, if you want to go for it yourself I would suggest taking at least 2 weeks of time to research existing solutions and experiment with the API.
Using the Event System might be a little easier - but your success or failure message will not appear in the Publish Queue and if the search index fails to update you can only log the failure and not pass the info back to users.
I would like to create workflow using SDL Tridion 2011 SP1, and i am going through the documentation in the live content portal.
I have few questions when I go through the documentation as follows:
Can I use C# (TOM.NET) for automatted activities/decisions? or should I use only VBScript (TOM)? Is there any sample code given in the live content portal for automatted activity/decision?
If C# (TOM.NET) is not allowed to use in workflows, why are its namespace/class/member references given there in TOM.NET API file?
If VBScript only allowed to use in WF, where can I get code/TOM API reference in SDL live content? As of now I dont have access to SDL Tridion server to get the documentation from the installer package.
Can I use C# (TOM.NET) for automated activities? Or should I use only VBScript (TOM)?
You can use the TOM within your C# code to write automated activities. There is a primary interop assembly provided for that purpose (IIRC).
Is use of TOM.NET allowed in workflows?
Accessing workflow items from within existing TOM.NET code (i.e. a TBB or DataExtender) is supported. So you can query items that are in workflow, kick off workflows, etc.. But using the TOM.NET for writing automated workflow activities is not supported.
The reason for this has something to do with incompatible threading models from what I recall. But I mostly just took the word of the developers for it; they are bound to know better than me.
Where can I get code/TOM API reference?
API reference documentation for Tridion is not in LiveContent, but instead is delivered in CHM (or zipped JavaDoc) files. The latest documentation for the TOM API can be found in the "SDL Tridion 2009 full documentation" zip on the Tridion 2009 documentation page on SDL Tridion World (login required).
Thanks to Quirijn and Alvin for pointing this out in the comments.
You can use C# for automated tasks. Create a class and sign it with:
[ProgId("[Namespace].[Class Name]")]
[ComVisible(true)]
And sign the assembly with RegAsm.exe with the /codebase parameter.
Then in the Script of the automated action you can use this object.
Create the workflow diagram (based on the requirement) using visio after installing the visio plugin.
upload the workflow into SDL Content Manager by providing the credentials and choosing the relevant publication.
For automatted activities: create a c# class library and refer the tridion dll's, and user progid and comvisible = true in the solution.
create the necessary functions for your workflow.
register the assembly in the SDL Tridion Content Manager server.
in the workflow "Edit script" use vb script code to get the C# object and its methods.
This will simplify the VBScript code and provide flexibility to the developr to work in c#.
It is fine to use the TOM .Net API. However we must consider that we would need to create Session instances since our new TOM .Net for Workflow won't allow you to pass a WorkItem instance from VBScript (Code Tab in Visio for Automatic Activities) and you are forced to pass the TcmUri for that WorkItem. The session creation is mandatory in order to get Tridion objects instantiated since you just have a tcmuri. The recommendation here is to use the C# class registered as a COM class by using the ComVisible and ProgId attributes but use the CoreServices for all the processing in your Com Visible class.
If you use the Core Services for processing you won't need to take care of sessions creations and your core would be much faster and scalable. You might be interested in use a TCP binding or a Net Pipes binding for performance obviously.
Upgrading .Net Events system from Tridion 2009 to Tridion 2011 SP1.
Does anyone have a brief overview of the steps involved?
What is the replacement for Events Config XML file to limit events to particular publications?
I have reviewed the subscribe approach implemented by the new Events system but can events be applied per publication. So far the only approach seems to be implementing publication filter logic in code rather than configuration?
Any input greatly appreciated!
This is a really good place to get started. Written by Bart Koopman
http://www.sdltridionworld.com/articles/sdltridion2011/sdltridion2011eventsystem.aspx
It includes a matrix for mapping old events to the new event phases.
To the best of my knowledge, you still need to choose whether or not to execute your code from within your code depending on the publication. You can not subscribe to a particular event for a specific publication.