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
[solved] Breadcrumbs and html code in Menus
-
- Forum Members
- Posts: 247
- Joined: Sun Oct 28, 2007 4:14 am
[solved] Breadcrumbs and html code in Menus
Last edited by Rolf on Tue Jun 15, 2010 6:20 am, edited 1 time in total.
Re: Breadcrumbs and html code in Menus
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.
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.
- Attachments
-
[The extension mpg has been deactivated and can no longer be displayed.]
-
- Forum Members
- Posts: 247
- Joined: Sun Oct 28, 2007 4:14 am
Re: Breadcrumbs and html code in Menus
This is a very elegant solution, thankyou, Nan.
I had begun to use chained pipes like this:
but what you have is much better.
Many thanks
Andrew
I had begun to use chained pipes like this:
Code: Select all
{breadcrumbs|replace:'<b>':''|replace:'</b>':'' starttext='You are now here' delimiter='»'}
Many thanks
Andrew
-
- Forum Members
- Posts: 247
- Joined: Sun Oct 28, 2007 4:14 am