{cms_breadcrumbs} hide label

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

{cms_breadcrumbs} hide label

Post by giapippo »

hallo

I would like to hide the label in breadcrumbs "You are here:"

i try with this

{cms_breadcrumbs delimiter='»' root='2' starttext=''}

but dont work

what should I do?
thanks for your help
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: {cms_breadcrumbs} hide label

Post by velden »

Code: Select all

 {Navigator|replace:':':'' action='breadcrumbs' start_text=''}
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: {cms_breadcrumbs} hide label

Post by giapippo »

Hello
I copied and pasted the code
but when I view the page I get this error


Syntax error in template "tpl_body:25" on line 23 "{Navigator|replace:':':'' action='breadcrumbs' start_text='' root='2'}" unknown tag "Navigator"

thanks for help
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: {cms_breadcrumbs} hide label

Post by velden »

Yeah, that is the code for CMSMS 2.0.

EDIT: Jeff's post below seems a way better anwser.

Try:

Code: Select all

{cms_breadcrumbs|regex_replace:'/^.*:/U':'' delimiter='»' root='2'}
giapippo
Forum Members
Forum Members
Posts: 176
Joined: Tue Feb 28, 2012 1:24 pm

Re: {cms_breadcrumbs} hide label

Post by giapippo »

hallo
i have the CMS version 1.11.13
with this code the label is ok

{cms_breadcrumbs|regex_replace:'/^.*:/U':'' delimiter='»' root='2'}

but the page visualization dont work fine

thanks for help
Attachments
bad visualization but no label
bad visualization but no label
good visualization but with label
good visualization but with label
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: {cms_breadcrumbs} hide label

Post by Jeff »

{cms_breadcrumbs} is a shortcut for {menu action="breadcrumbs"} go to the Menu Manage and edit the breadcrumbs template.
Post Reply

Return to “The Lounge”