Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SDL Tridion .NET controls for SDL SmartTarget 2014 promotion
<div>
<!-- Start Promotion Region: {"RegionID": "HomepagePromotions" } -->
<smarttarget:Query AllowDuplicates="false" Publication="tcm:0-6-1" runat="server" SiteEditTagName="div">
<smarttarget:Promotions MaxItems="3" Region="HomepagePromotions" runat="server">
<ItemTemplate>
<smarttarget:PromotionalItems runat="server">
<ItemTemplate>
<div>
<!-- Start Promotion: { "PromotionID": "<%# Eval("promotionID") %>", "RegionID" : "<%# Eval("region") %>"} -->
<tridion:ComponentPresentation runat="server"
PageURI="tcm:6-221-64"
ComponentURI="<%# Eval(&quot;ComponentUri&quot;) %>"
TemplateURI="<%# Eval(&quot;TemplateUri&quot;) %>"/>
<!-- End Promotion -->
</div>
</ItemTemplate>
</smarttarget:PromotionalItems>
</ItemTemplate>
<FallbackContent>
<tridion:ComponentPresentation runat="server"
PageURI="tcm:6-221-64"
ComponentURI="tcm:6-127"
TemplateURI="tcm:6-123-32"/>
</FallbackContent>
</smarttarget:Promotions>
</smarttarget:Query>
<!-- End SiteEdit Promotional Region -->
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment