Breadcrumb trail, how do I exclude the freetag plugin
Posted: Mon Oct 30, 2006 8:44 pm
I want to add some extra intelligence to my breadcrumb trail to exclude the freetag plugin. What happen is that my trail works perfectly with blog entries, static pages and the contact form plugin. When a user clicks a tag, the freetag plugin sets $head_subtitle, but doesn't set $head_title, so I end up with the 'Entries tagged as ...' appearing in the space where the breadcrumb is supposed to be, and then immediately below this I get the cloud header 'Tags related to tag ...', which looks a bit silly.
I've tried testing for $plugin_freetag_name at the section where the $head-subtitle is called, but this doesn't work. Any ideas?
I've tried testing for $plugin_freetag_name at the section where the $head-subtitle is called, but this doesn't work. Any ideas?
Code: Select all
<div class="breadcrumb">
{if $startpage}{else}<a href="{$serendipityBaseURL}">{$CONST.HOMEPAGE} </a>{/if}
{if $head_title && !$entry.title | $head_title != $entry.title}
{if $entry.title}»{/if} {$category.category_name}
{elseif $head_title && $entry.title}
{if $category.category_name}
» <a href="{$category.category_link}" title="{$category.category_description}"> {$category.category_name}</a>
{/if}
{if $entry.title == $head_title}
» {$entry.title|truncate:40:" ...":true}
{/if}
{elseif $head_subtitle} {if $plugin_freetag_name}{else} » {$head_subtitle}{/if}
{/if}
{foreach name="crumbs" from=$staticpage_navigation.crumbs item="crumb"}
» <a href="{$crumb.link}">{$crumb.name|@escape}</a>
{/foreach}
{if $plugin_contactform_name}» <a href="#">{$plugin_contactform_name}</a>{/if}
</div>