[solved] Breadcrumbs and html code in Menus

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Andrew Prior
Forum Members
Forum Members
Posts: 247
Joined: Sun Oct 28, 2007 4:14 am

[solved] Breadcrumbs and html code in Menus

Post 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
Last edited by Rolf on Tue Jun 15, 2010 6:20 am, edited 1 time in total.
NaN

Re: Breadcrumbs and html code in Menus

Post 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.
Attachments

[The extension mpg has been deactivated and can no longer be displayed.]

Andrew Prior
Forum Members
Forum Members
Posts: 247
Joined: Sun Oct 28, 2007 4:14 am

Re: Breadcrumbs and html code in Menus

Post 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
Andrew Prior
Forum Members
Forum Members
Posts: 247
Joined: Sun Oct 28, 2007 4:14 am

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

Post by Andrew Prior »

vv
Post Reply

Return to “CMSMS Core”