jan-h
11/25/2014 - 3:29 PM

Shortest possible SmartTarget JSP tags example for SmartTarget 2014 with XPM.

Shortest possible SmartTarget JSP tags example for SmartTarget 2014 with XPM.

<smarttarget:query siteEditTagName="span" publication="tcm:0-72-1"> 
	<smarttarget:promotions region="Homepage Banners" 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:promotions> 
</smarttarget:query>