Page 1 of 1

Page hierarchy / breadcrumb question

Posted: Sat Aug 05, 2006 7:47 am
by gfroyle
Another possibly dumb question...

Just experimenting with with CMSms and I can't understand the behaviour of the page hierarchy/breadcrumbs...

(I am using andreas01.xml template for all pages.)

The default install has a page called "Home" which has no parent page.. fair enough.

Then I added some more pages which are on "the same level" as Home because they also don't have parents... they all appear at the same level in the menu

Home
Page 1
Page 2

But when I click on, say, "Page 1" the breadcrumbs say

Home >> Page 1

as though Page 1 were a SUB-page of "Home".

What I can't figure out is what makes THIS page the "dominant" page .. I've tried reordering the pages to make another page number 1, changing the options and so on, but this PARTICULAR page always takes on the role of the "ultimate top" in that the breadcrumbs are always based on this root...


Maybe its not important but I like to know why things are happening...

Cheers

Gordon

Re: Page hierarchy / breadcrumb question

Posted: Sat Aug 05, 2006 4:51 pm
by tsw
using svn version?

I just committed fix for new hierarchy manager..

Re: Page hierarchy / breadcrumb question

Posted: Sat Aug 05, 2006 7:00 pm
by Elijah Lofgren
gfroyle wrote: The default install has a page called "Home" which has no parent page.. fair enough.

Then I added some more pages which are on "the same level" as Home because they also don't have parents... they all appear at the same level in the menu

Home
Page 1
Page 2

But when I click on, say, "Page 1" the breadcrumbs say

Home >> Page 1

as though Page 1 were a SUB-page of "Home".

What I can't figure out is what makes THIS page the "dominant" page .. I've tried reordering the pages to make another page number 1, changing the options and so on, but this PARTICULAR page always takes on the role of the "ultimate top" in that the breadcrumbs are always based on this root...
It's probably the way that the breadcrumbs tag is being called.

There should be a tag like this in your template:

Code: Select all

{breadcrumbs starttext='' root='home' delimiter='>' root_url="./"}
If you change it to this it will no longer make the "Home" page act like it is the parent of every page:

Code: Select all

{breadcrumbs starttext='' delimiter='>' root_url="./"}
For more info about the various parameters of the breadcrumbs plugin/tag go to: /admin/listtags.php?action=showpluginhelp&plugin=breadcrumbs

A quote from that page:
(optional) root - Page alias of a page you want to always appear as the first page in the list. Can be used to make a page (e.g. the front page) appear to be the root of everything even though it is not.
Hope this helps,

Elijah

Re: Page hierarchy / breadcrumb question

Posted: Sat Aug 05, 2006 9:09 pm
by tsw
it used to do something like this:

when on page
index.php/how-cmsms-works/templates-and-stylesheets
breadcrumbs called with root="home" it would still print
You are here: Home ยป Templates and stylesheets, leaving how-cmsms-works out...
should work with latest svn though