Skip to content

Instantly share code, notes, and snippets.

@jhorsman
Last active August 29, 2015 14:10
Show Gist options
  • Save jhorsman/0b313b9d0fb1b3eb1f2b to your computer and use it in GitHub Desktop.
Save jhorsman/0b313b9d0fb1b3eb1f2b to your computer and use it in GitHub Desktop.
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment