jhorsman
3/24/2015 - 9:30 AM

Example with a split SmartTarget region. A static component presentation is rendered in between two SmartTarget component presentation. For

Example with a split SmartTarget region. A static component presentation is rendered in between two SmartTarget component presentation. For SmartTarget 2014 SP1 in ASP.NET.

<smarttarget:Query Publication="tcm:0-69-1" runat="server" SiteEditTagName="span" AllowDuplicates="false" > 
    <smarttarget:Promotions MaxItems="1" Region="Homepage Promotions" runat="server"> 
        <ItemTemplate> 
            <smarttarget:PromotionalItems runat="server"> 
                <ItemTemplate>
                    <span>
                        <!-- Start Promotion: { "PromotionID": "<%# Eval("promotionID") %>", "RegionID" : "<%# Eval("region") %>"} -->
                         <tridion:ComponentPresentation runat="server" PageURI="tcm:69-6212-64" ComponentURI="<%# Eval(&quot;ComponentUri&quot;) %>" TemplateURI="<%# Eval(&quot;TemplateUri&quot;) %>"/> 
                        <!-- End Promotion -->
                    </span>
                </ItemTemplate> 
            </smarttarget:PromotionalItems> 
        </ItemTemplate> 
        <FallbackContent> 
            <tridion:ComponentPresentation runat="server" PageURI="tcm:69-6212-64" ComponentURI="tcm:69-6196" TemplateURI="tcm:69-6213-32"/>
        </FallbackContent> 
    </smarttarget:Promotions> 

    <!-- static component presentation -->
	   <tridion:ComponentPresentation runat="server" PageURI="tcm:69-6212-64" ComponentURI="tcm:69-6198" TemplateURI="tcm:69-6213-32"/>
	
    <smarttarget:Promotions MaxItems="1" Region="Homepage Promotions" runat="server"> 
        <ItemTemplate> 
            <smarttarget:PromotionalItems runat="server"> 
                <ItemTemplate>
                    <span>
                        <!-- Start Promotion: { "PromotionID": "<%# Eval("promotionID") %>", "RegionID" : "<%# Eval("region") %>"} -->
                         <tridion:ComponentPresentation runat="server" PageURI="tcm:69-6212-64" ComponentURI="<%# Eval(&quot;ComponentUri&quot;) %>" TemplateURI="<%# Eval(&quot;TemplateUri&quot;) %>"/> 
                        <!-- End Promotion -->
                    </span>
                </ItemTemplate> 
            </smarttarget:PromotionalItems> 
        </ItemTemplate> 
        <FallbackContent> 
            <tridion:ComponentPresentation runat="server" PageURI="tcm:69-6212-64" ComponentURI="tcm:69-6197" TemplateURI="tcm:69-6213-32"/>
        </FallbackContent> 
    </smarttarget:Promotions> 
</smarttarget:Query>