Per the SDL SmartTarget 2014 documentation,
tcdl queries appear in regions.
<tcdl:region> <tcdl:query> <tcdl:facet /> <tcdl:item /> <tcdl:search /> <tcdl:attribute /> <tcdl:promotions /> <tcdl:navigation /> <tcdl:items /> </tcdl:query> </tcdl:region>
<tcdl:region id="Sidebar" type="SmartTarget"> <tcdl:query publication='tcm:0-1-1'> <tcdl:facet category='tcm:1-3-4' /> <tcdl:promotions region='Sidebar' maxItems='5'> ... </tcdl:promotions> </tcdl:query>
What's the (ordinal) relationship between regions and queries?
- Is it a 1:1 (one-to-one) relationship?
- If not, does each region need a query?
Must a query appear within a region (i.e. can queries be added elsewhere on a page?
In the example, does the
<tcdl:promotions region='Sidebar' maxItems='5'>represent the
<tcdl:region id="Sidebar" type="SmartTarget">?
For SmartTarget functional requirements I think we can document region and query requirements together, but I want to be sure.
If regions always have a query, then at least functionally, a region would be:
- Name (Id)
- Allow Duplicates (Y/N)
- Timeout (milliseconds)
View(not supported, but would be one of: lister, detail, search, home, summary, compare)
- Redirect (T/F)
Plus additional SmartTarget functionality for that region (e.g. search, navigation, promotions, etc).