A good breadcrumb does not wrap a link about the currently active item.
Is there any way to unlink the news index breadcrumb? Any other function I can use for that instead of `printNewsIndexURL()`
Index[link] » News [link] » My second page [no-link]
Index[link] » News [no-link]
`
" title="<?php gettext('Index'); ?>"><?php echo gettext("Index"); ?> »
<?php printNewsIndexURL(gettext('News')); ?>
<?php printZenpageItemsBreadcrumb(' » ',''); printCurrentNewsCategory(" » "); ?>
<?php printNewsTitle(" » "); printCurrentNewsArchive(" » "); ?>
`
Comments
Here's the default zenpage breadcrumb for the image page:
`
" title="<?php gettext('Index'); ?>"><?php echo gettext("Index"); ?> » <?php echo gettext("Gallery"); ?><?php printParentBreadcrumb(" » "," » "," » "); printAlbumBreadcrumb(" ", " » "); ?>
<?php printImageTitle(true); ?> (<?php echo imageNumber()."/".getNumImages(); ?>)
`
If you refer to the default zenpage theme it does exactly what you're asking for.
@ micheall it does that for the Image pages yes but not for News. I checked all other themes that ship with ZP and all of them wrap a link on around the News index.
The `printParentBreadcrumb()` function says: So not for News..
An if/else statement is exactly my thought.. but how?
How can I state we are on the index page?
`
if (this_page_is_the_news_index) {
echo "" . gettext('News') . "";
} else {
printNewsIndexURL(gettext('News'));
}
`
`if(is_NewsPage() && !is_NewsArticle() && !is_NewsCategory()) { ... ) else { ... }`
Great. Thanks acrylian!