jan-h
11/4/2014 - 11:15 AM

SmartTarget JSP tags example for SmartTarget 2014

SmartTarget JSP tags example for SmartTarget 2014

<smarttarget:query siteEditTagName="span" publication="tcm:0-72-1"> 
	<smarttarget:promotions region="Homepage Banners" var="promotion" maxItems="1"> 
		<smarttarget:itemTemplate> 
			<smarttarget:promotionalItems> 
				<smarttarget:itemTemplate>
					<span>
						<!-- Start Promotion: { "PromotionID": "${item.promotionID}", "RegionID" : "${item.region}"} -->
						<tridion:ComponentPresentation pageURI="tcm:72-6212-64" componentURI="${item.componentUri}" templateURI="${item.templateUri}"/> 
						<!-- End Promotion -->
					</span>
				</smarttarget:itemTemplate> 
			</smarttarget:promotionalItems> 
		</smarttarget:itemTemplate> 
		<smarttarget:fallbackContent> 
			<tridion:ComponentPresentation pageURI="tcm:72-6212-64" componentURI="tcm:72-6196" templateURI="tcm:72-6322-32"/>
			<tridion:ComponentPresentation pageURI="tcm:72-6212-64" componentURI="tcm:72-6197" templateURI="tcm:72-6322-32"/>
			<tridion:ComponentPresentation pageURI="tcm:72-6212-64" componentURI="tcm:72-6198" templateURI="tcm:72-6322-32"/>
		</smarttarget:fallbackContent> 
	</smarttarget:promotions> 
</smarttarget:query>