hey there,

I have a client who wants a view's title in its breadcrumb - even when you're on the view itself.

ex.: if you're in events, show home > events.
if you're in events/october, show home > events > october.

I know it sounds silly, because, well, you're ALREADY there so why link to where you are? but this client simply won't take no for an answer.

can I reproduce this odd behaviour?

cheers,
Luciano

Comments

MGN’s picture

Status: Active » Fixed

Yes you can do this if you enable the "Allow the use of PHP to set titles and paths" option at admin/settings/custom-breadcrumbs. Then, the views object is available for forming breadcrumb titles and paths so you can do:

Titles:
<?php return array($view->name); ?>

Paths:
path/to/view

Unfortunately, while investigating this I found a bug so this doesn't work in beta2. I've just committed the fix to the latest dev version (6.x-2.x-dev) which is now available in CVS and will be rolled into a beta3 version after a few issues have been resolved.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.