Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Changing Breadcrums home location name from the Site Name to "home"
I’m using breadcrumbs and for the root location it uses the name given in the Site Name. However, I’d like to use the name “home,” but I don’t want to change the Site Name to do it. Can this be done?
Currently the crumbs trail looks like this: ACME > Services > HIV Testing
I’d like to look like this: Home > Services > HIV Testing
Is it possible?
Thank you.
Living the Location-Independent Life: www.NuNomad.com
Offline
#2 2011-06-20 21:57:19
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Changing Breadcrums home location name from the Site Name to "home"
Not with the default tag. You could create the breadcrumbs with other txp tags and some conditionals, but the simplest workaround would be using rah_replace:
<txp:rah_replace from="ACME" to="Home"><txp:breadcrumb /></txp:rah_replace>
Offline
Re: Changing Breadcrums home location name from the Site Name to "home"
Els,
That worked very nicely. Thanks!
Living the Location-Independent Life: www.NuNomad.com
Offline
Re: Changing Breadcrums home location name from the Site Name to "home"
What about simply using the label attribute (instead of rah_replace)?
I am using the following for my category article lists and in your case a label=Home"
should do the trick. Or do I miss something?
<txp:breadcrumb label="Artikelliste für Kategorie" title="1" wraptag="h2" class="breadcrumb" />
Last edited by merz1 (2011-06-21 13:17:25)
Get all online mentions of Textpattern via OPML subscription: TXP Info Sources: Textpattern RSS feeds as dynamic OPML
Offline
Re: Changing Breadcrums home location name from the Site Name to "home"
Markus,
That’s a great option too. And one less plug-in to keep in my library. Either of these would work for anyone wishing to customize their bread crumb trail.
Best,
Living the Location-Independent Life: www.NuNomad.com
Offline