Sort of a work around; not really solved. How did I get a Duplicate Breadcrumb?

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

Sort of a work around; not really solved. How did I get a Duplicate Breadcrumb?

Post by Andrew Prior »

On the home page it says "You are here: Scots ChurchAdelaide"
When i go to the menu item under this I get: "You are here: Scots Church Adelaide » Scots Church Adelaide » The Uniting Church "

http://www.scotschurch.org.au

This seems to have "just happened"; ie I've not been editing anything in stylesheets or templates.
vs 1.2.3

The stylesheet says:
{* Start Breadcrumbs *}
   
        {breadcrumbs starttext='You are here' root='Home' delimiter='»'}
   
   
   {* End Breadcrumbs *}

Can anyone tell me what I'm looking for?
Thanks
Andrw
:)
Last edited by Anonymous on Wed Jul 16, 2008 10:48 am, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How did I get a Duplicate Breadcrumb?

Post by Dr.CSS »

It defaults to show the page before the one your on so if you have a page under the Home/root, root='Home', then you will have...

1Home(because you told it to always show it, root='Home'), 2home because it's the page before this, 3page you are on...

You are here: 1Scots Church Adelaide » 2Scots Church Adelaide » 3The Uniting Church
Andrew Prior
Forum Members
Forum Members
Posts: 247
Joined: Sun Oct 28, 2007 4:14 am

Re: How did I get a Duplicate Breadcrumb?

Post by Andrew Prior »

Well, I thought I would have noticed before now, plus I have the same set up at
http://onemansweb.org/index.php?page=10years
and the phenomenon doesn't happen there. Am I missing something here?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How did I get a Duplicate Breadcrumb?

Post by Dr.CSS »

Well what is the difference in the tag?...

More than likely it doesn't have root='Home'...
Andrew Prior
Forum Members
Forum Members
Posts: 247
Joined: Sun Oct 28, 2007 4:14 am

Re: How did I get a Duplicate Breadcrumb?

Post by Andrew Prior »

Well Mark,
I don't know if this is interesting or just plain frustrating :-(
I have 4 sites with CMS Made Simple.
All four of them have exactly the same text in the stylesheets for the breadcrumbs; two of them have the repeat menus, and two of them do not. Go figure!

You are correct to the extent that where I have the repeated menu item eg "You are here: Home >> Home >> Why"
I can remove the duplication by removing text from the style sheet.

If I take the code below
{* Start Breadcrumbs *}
 
        {breadcrumbs starttext='You are here' root='Home' delimiter='»'}
 
 
  {* End Breadcrumbs *}

and remove root='Home' from the  third line, my duplication disappears. What I cannot figure out is where the difference between the sites is; especially as in one of them there has been no changes for some time; simply the addition of some extra pages.

Sigh :-(  So maybe I'll find something, but I'm flummoxed!
Thankyou for your interest.

Andrew
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Sort of a work around; not really solved. How did I get a Duplicate Breadcru

Post by Dr.CSS »

I'm sure you mean the template...

I can remove the duplication by removing text from the style sheet.
wct296

Re: Sort of a work around; not really solved. How did I get a Duplicate Breadcrumb?

Post by wct296 »

LOL I had the same problem with 1.4.1... check this out

  {* Start Breadcrumbs *}
 
        {breadcrumbs starttext='You are here' root='Home' delimiter='»'}
 
 
  {* End Breadcrumbs *}

will display : You are here: Home » Home » Mission

However:

  {* Start Breadcrumbs *}
 
        {breadcrumbs starttext='You are here' root='Home ' delimiter='»'}
 
 

(NOTE: the space after the "e" in root='Home ')

will display: You are here: Home » Mission


There must be something in the code that looks for the word 'Home' ... Dodgy solution is to add a space as above in the 2nd example

Thanks
Cam
Post Reply

Return to “CMSMS Core”