Hi,
I would like to have a breadcrumb non linkable, only text, just to say "you are here".
There is a way to obtain this?
Thank you....

Comments

netivajak’s picture

If you're using phptemplate, try changing:

print $breadcrumb

to

print strip_tags($breadcrumb)

but you may want to question why you want this - it may not be very friendly for the users.

enxox’s picture

because breadcrumbs points to taxonomy terms, and I don't want users to open taxonomy pages

BigMike’s picture

@netiva jak: Thank you very much for this strip_tags feature. This is exactly what I needed!

Mike

justinchev’s picture

I am doing something similar to the above - adding a non-linkable breadcrumb trail - but I would like to remove the 'Home' link and ideally the » character that splits the items.

The reason I am trying to do this is so that my page title META tag can show the page title followed by the section the page belongs to. eg. 'New Ferarri revealed - Car News'.

My PHP skills are rather limited - does anyone have any ideas as to how I would go about doing this?

d.hoogland’s picture

He justinchev,

http://drupal.org/node/72850 might help an bit when it comes to not displaying 'Home'.

To override the '>>' in the breadcrumb trail you need to place the following function in template.php in your theme-directory (when using phptemplate)

function phptemplate_breadcrumb($breadcrumb) {
if (!empty($breadcrumb)) {
return '<div class="breadcrumb">'. implode('yoursymbol', $breadcrumb) .'</div>';
}
}

... in which the yoursymbol is a sign like >> or > or | ,etc.

succes,