Page hierarchy / breadcrumb question

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.
Locked
gfroyle

Page hierarchy / breadcrumb question

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Page hierarchy / breadcrumb question

Post by tsw »

using svn version?

I just committed fix for new hierarchy manager..
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Page hierarchy / breadcrumb question

Post 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
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Page hierarchy / breadcrumb question

Post 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
Locked

Return to “CMSMS Core”