Reading the docs, you would be led to believe that creating Fredhopper triggers was a matter of editing the trigger-types.xml file. It is however also possible to do this programatically – a trick that can come in handy should you not have access to that file on Production, or you wish to manage your triggers through automation.
There are a number of steps required to install SmartTarget and all the required pieces, including FredHopper and the new SmartTarget CD Webservice Extension. Thatâ€™s right; Tridionâ€™s OData Webservice now comes with a SmartTarget extension to grab your Promotionsâ€™ itemsâ€¦ I digress. In this article I am going to assume that youâ€™ve done your homework and read the SDL Live Content documentation regarding the necessary moving parts, wiring and plumbing, and have it all installed. (If youâ€™re looking for an introduction to SmartTarget 2014, have a look at John Winterâ€™s article: A look at SmartTarget 2014). So here weâ€™ll just jump right into answering the question of how to integrate DD4T.NET with SmartTarget 2014 and I will share an MVC HTML Helper Extension class providing us with control to render SmartTargetâ€™s Promotion Items in your DD4T-driven MVC.NET application.