Page 1 of 1

[solved] Breadcrumbs and html code in Menus

Posted: Wed Jun 09, 2010 1:25 pm
by Andrew Prior
I've worked out how to change the simple_navigation.tpl so that I can put some html formatting into menu items.
I searched ({$node->menutext}) and replaced ({$node->raw_menutext}) according to a post by Calguy.

I have given the name Making Sense to the menu title for a page
and it shows up as Making Sense in my  menu, which is correct.
But in my breadcrumb it shows up as
You are now here: Sense

Is there anyway I can manage this, apart from removing the breadcrumb tag?




// Rolf: Solved

Re: Breadcrumbs and html code in Menus

Posted: Sun Jun 13, 2010 2:47 pm
by NaN
The breadcrumb plugin only displays the htmlentity converted menutext.
To use raw menutext you need to modify the breadcrumb tag.

I attached the modified breadcrumb plugin (remove file extension ".mpg", extract and upload to plugins directory).
Edit your template and call he breadcrumb with the additional param raw_menutext=true.

Re: Breadcrumbs and html code in Menus

Posted: Tue Jun 15, 2010 5:54 am
by Andrew Prior
This is a very elegant solution, thankyou, Nan.
I had begun to use chained pipes like this:

Code: Select all

{breadcrumbs|replace:'<b>':''|replace:'</b>':'' starttext='You are now here' delimiter='»'}

but what you have is much better.
Many thanks
Andrew

SOLVED, but won't let me modify original post.... umbs and html code in Menus

Posted: Tue Jun 15, 2010 5:58 am
by Andrew Prior
vv