Skip to content

Instantly share code, notes, and snippets.

@willprice76
Created September 1, 2015 14:30
Show Gist options
  • Save willprice76/e46a19f6cfe693427288 to your computer and use it in GitHub Desktop.
Save willprice76/e46a19f6cfe693427288 to your computer and use it in GitHub Desktop.
Example extended SmartTarget Component presentation XML from transport package
<ComponentPresentations>
<ComponentPresentation IsRendered="true">
<Component Id="tcm:100-10265" />
<CodePage>65001</CodePage>
<Template Id="tcm:100-10119-32" Priority="200" Format="HTML Fragment" Title="Promotion - JSON" IsDynamic="false" />
<RenderingMetadata>
<SmartTarget>
<Component path="\Building Blocks\Content\Banner\" tcmuripath="\tcm:100-13-2\tcm:100-19-2\tcm:100-122-2">
<Keyword id="tcm:100-10445-1024" tcmuripath="\tcm:100-5390-512\tcm:100-10445-1024" titlepath="\Segment\Games" categoryId="tcm:100-5390-512" categoryTitle="Segment" categoryXmlName="Segment" />
<Source>
<banner xmlns="http://mysite/schemas/banner">
<segment>Games</segment>
<segment_key>gm</segment_key>
<heading>Games are fun. </heading>
<trackingId>personalised-banner-1</trackingId>
</banner>
</Source>
</Component>
<Template id="tcm:100-10119-32" title="Promotion - JSON" />
<Publication id="tcm:0-100-1" title="500 mysite.com" />
</SmartTarget>
</RenderingMetadata>
<RenderingInstructions>
<SmartTarget addToFredhopper="true" />
</RenderingInstructions>
</ComponentPresentation>
</ComponentPresentations>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment