Dears,
I have just started with Smart Target and going through docs. I am confused by below 2 points. If you can please help me understand, that will be helpful for me.
Point 1: The docs say to add the relevant Smart Target Building Blocks to Page Template. I added TBBs: "Add To Smart Target", "Add Smart Target Query", "Add Promotions" etc...
So, does adding these TBBs is enough to generate the required Code to display promotional items ? What I mean is that adding smart target TBBs generate below code in the ASPX page ?
<tcdl:promotions maxItems="20" region="Sidebar">
<tcdl:itemTemplate>
<br>
<b>Title:</b><asp:Label Text=”##Title##” runat="server"/>
<b>Slogan:</b><asp:Label Text=”##Slogan##” runat="server"/>
</br>
<tcdl:promotionalItems>
<tcdl:itemTemplate>
<tcdl:ComponentPresentation componentURI='##ComponentUri##' TemplateURI='##TemplateUri##' Type='Dynamic'/>
/tcdl:itemTemplate>
</tcdl:promotionalItems>
</tcdl:itemTemplate>
<tcdl:fallbackContent>...
</tcdl:fallbackContent>
</tcdl:promotions>
I was referring thos doc URl: https://docs.sdl.com/792480/164695/sdl-smarttarget-2014/displaying-promotion-title-and-slogan
- How do we customize the HTML which is inside the
<tcdl:itemTemplate>
? - Do I need to edit manually the HTML and those TCDL tags / write the TCDL tags myself in ASPX page or the Smart Target TBBs do it automatically ?
- If I have to write the TCDL tags myself in ASPX page, what is the purpose of Smart Target TBBs ?