Skip to content

Instantly share code, notes, and snippets.

@jhorsman
Created May 14, 2014 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhorsman/b5c10242cbd774b44dc0 to your computer and use it in GitHub Desktop.
Save jhorsman/b5c10242cbd774b44dc0 to your computer and use it in GitHub Desktop.
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