I cannot use the xen:if tag inside the xen:navigation tag. This code produces an template error:
Error:
However using the same xen:if syntax after the xen:navigation tab doesnt result in this error.
-> No Error.
PHP:
<xen:navigation>
<xen:if is="{category}">
<xen:breadcrumb href="{$categoryLink}">{$category}</xen:breadcrumb>
</xen:if>
<xen:breadcrumb href="{$breadcrumbLink}">{$article.article_name}</xen:breadcrumb>
</xen:navigation>
Error:
Code:
Line 2: Invalid data found in navigation tag.
However using the same xen:if syntax after the xen:navigation tab doesnt result in this error.
PHP:
<xen:navigation>
<xen:breadcrumb href="{$breadcrumbLink}">{$article.article_name}</xen:breadcrumb>
</xen:navigation>
<xen:if is="{category}">
{$category}
</xen:if>