Page 1 of 1
{cms_breadcrumbs} hide label
Posted: Mon Feb 29, 2016 7:48 pm
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
Re: {cms_breadcrumbs} hide label
Posted: Tue Mar 01, 2016 12:40 pm
by velden
Code: Select all
{Navigator|replace:':':'' action='breadcrumbs' start_text=''}
Re: {cms_breadcrumbs} hide label
Posted: Tue Mar 01, 2016 1:08 pm
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
Re: {cms_breadcrumbs} hide label
Posted: Tue Mar 01, 2016 1:16 pm
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'}
Re: {cms_breadcrumbs} hide label
Posted: Tue Mar 01, 2016 1:40 pm
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
Re: {cms_breadcrumbs} hide label
Posted: Tue Mar 01, 2016 3:14 pm
by Jeff
{cms_breadcrumbs} is a shortcut for {menu action="breadcrumbs"} go to the Menu Manage and edit the breadcrumbs template.