Closed (fixed)
Project:
Crumbs, the Breadcrumbs suite
Version:
7.x-2.0-beta9
Component:
Specific use case
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Dec 2013 at 19:51 UTC
Updated:
12 Jan 2014 at 05:20 UTC
Jump to comment: Most recent
Comments
Comment #1
tarheeldev commentedI fixed this using CSS
Comment #2
donquixote commentedOk, I definitely think this should be implemented in Crumbs by default.
Comment #3
Binu Varghese commentedBreadcrumb Trail (search page):
=======================
Home • Search • Content • Content
Make these highlighted changes in your active theme's template.php
function THEMENAME_breadcrumb($variables) {
$breadcrumb = $variables['breadcrumb'];
if (!empty($breadcrumb)) {
-- -- --
-- -- --
if(arg(0)=='search')
{
unset($breadcrumb[2]);
unset($breadcrumb[3]);
}
$output .= '' . implode(' » ', $breadcrumb) . '';
return $output;
}
}
Result:
=======
Home • Search
Hope it helps!
Comment #4
Binu Varghese commentedCheck out an another scenario: https://drupal.org/node/2163373 posted today!
Comment #5
donquixote commentedNooooo!
@Binu:
1. This is not fixed.
2. If you already implement a solution in code, you should rather write a plugin than a theme hack. Ideally one that you can share with us...
Comment #6
Binu Varghese commentedoops! wrong status.. i meant to provide a solution on the code front only!
Comment #7
donquixote commentedHere is an attempt to implement this in Crumbs natively:
https://github.com/donquixote/drupal-crumbs/compare/7.x-2.x-search?expand=1
Don't you agree the API is awesome :)
So far this fix will only do the following change:
On
search/node/%: Home » Search (» Content)On
search/user/%: Home » Search (» Users)However: There are so many ways that people could want this to look like, that in the end maybe custom plugins are the better option?
Maybe we just commit this simply "fix" and then people who are not happy should do their own plugin?
Comment #8
donquixote commentedImplemented in 7.x-2.0-beta12.
If you want something more fancy, have a look at my stackexchange answer:
http://drupal.stackexchange.com/a/98432/2974