Skip to content

Instantly share code, notes, and snippets.

@jhorsman
Last active August 29, 2015 14:13
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/b858f0397d83ec732d3d to your computer and use it in GitHub Desktop.
Save jhorsman/b858f0397d83ec732d3d to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Test page for SDL SmartTarget</title>
</head>
<body>
<form runat="server">
<h1>SmartTarget test page</h1>
<p>
Change the following on the source of this page
<ul>
<li>Publication id in the smarttarget:Query Publication attribute; This is the website's publication id</li>
<li>Region name in smarttarget:Promotions Region attribute; See the regions defined in the smarttarget_conf.xml of the </li>
</ul>
</p>
<hr/>
<br/>
<br/>
<smarttarget:Query Publication="tcm:0-6-1" runat="server">
<smarttarget:Promotions Region="HomepagePromotions" MaxItems="10" runat="server">
<ItemTemplate>
<smarttarget:PromotionalItems runat="server">
<ItemTemplate>
<span>
<tridion:ComponentPresentation
runat="server" PageURI=""
ComponentURI="<%# Eval(&quot;ComponentUri&quot;) %>"
TemplateURI="<%# Eval(&quot;TemplateUri&quot;) %>"/>
</span>
</ItemTemplate>
</smarttarget:PromotionalItems>
</ItemTemplate>
</smarttarget:Promotions>
</smarttarget:Query>
</form>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment