DotAdmin User Guide
Alternative Category Suggestion Nav Templates
An alternative categories nav consists of 2 mains BLOCKs
- BLOCK {home_category}
- The current document's home zone.
- BLOCK {other_categories}
- Other zones which the document has been placed into.
A typical nav template might look something like this:
<!-- BLOCK {home_category} -->
<p>
<!-- IF {current}--><b><!-- /IF {current}-->
<!-- BLOCK {breadcrumb}-->{title}>
<!-- /BLOCK {breadcrumb}-->
<a href="{id}">{title}</a>
({id })
- {doctype }
<!-- IF {current}--></b><!-- /IF {current}-->
</p>
<!-- /BLOCK {home_category} -->
<!-- BLOCK {extra_categories} -->
<p>
<!-- IF {current}--><b><!-- /IF {current}-->
<!-- BLOCK {breadcrumb}-->{title}>
<!-- /BLOCK {breadcrumb}-->
<a href="{id}">{title}</a>
({id })
- {doctype }
<!-- IF {current}--></b><!-- /IF {current}-->
</p>
<!-- /BLOCK {extra_categories} -->
The above example would out a list of zone placement details something like this:
Product Category (product_category) - store_index
Home > News (news) - page
Home > The North > Stories from your town (n_stories) - page
Home > Surfing Products (surfing) - store_index
BLOCK home_category / BLOCK extra_category Placeholder List:
The placeholders used in these nav templates are summarised in the table below:
|
Placeholder
|
Output
|
|
{id}
|
ID (url) of the zone.
|
|
{title}
|
Title of the zone.
|
|
{parent}
|
The zone's parent
|
|
{doctype}
|
The doctype of the zone index page
|
|
BLOCK {current}
|
This is set to true if the user is currently viewing the document from within this zone.
|
|
BLOCK {breadcrumb}
|
A block containing each element of the breadcrumb trail for the current zone
|
BLOCK breadcrumb Placeholder List:
The placeholders used in the breadcrumb BLOCK are listed below:
|
Placeholder
|
Output
|
|
{id}
|
ID (url) of this zone in the breadcrumb trail.
|
|
{title}
|
Title of the this zone in the breadcrumb trail.
|
|