I am working on a SmartTarget module for the SDL Tridion Reference Implementation (although I guess this issue would also be applicable for DD4T).
After retrieving the promotions from SmartTarget, it appears non of the Promotions and promotions Items in the ResultSet are set to Visible. And thus XPM does not consider the Promotion on the Page part of the Region, since the IncludedInPage
JSON properties in the Experience Manager Markup generated by the ResultSet.GetExperienceManagerMarkup
method are all set to false
:
<!-- Start Query: {
"RegionID" : "Inset 1",
"MaxItems" : 1,
"Experiments" : [
],
"Promotions" : [
{
"PromotionID": "6c4983b0-6f38-4540-a94a-20c8ee070fbc",
"PromotionTitle": "SmartTarget Promotion",
"IncludedInPage": false,
"Items" : [
{ "ComponentID": "tcm:127-96385-16", "ComponentTemplateID": "tcm:127-96893-32", "IncludedInPage": false }
]
}
]
}
-->
I suspect this may be related to the fact I am not using any of the SmartTarget TBB's in the Page Template. For as far as I can see the SmartTarget TBB's merely generate the TDCL markup in a traditional scenario, which is not applicable since the output of the Page Template is DD4T XML. But maybe some metadata is not pushed to Fredhopper by leaving them out?
Does anyone have suggestions to get this to work properly?