Page 1 of 1

[solved] Page as just parent/section but no content? Displays first of children?

Posted: Thu Sep 04, 2008 2:48 am
by Benek
I have a site that I want setup like this:

Home
-Section One
--Section One sub-page 1
--Section One sub-page 2
--Section One sub-page 3
-Section Two
--Section Two sub-page 1
--Section Two sub-page 2
-Section/Page Three
-Section/page Four

As you can see some of the level 2 pages will have children, and some will just be a single page. What I want is to have the pages with children (e.g. Section One) to act more like a directory and not a page. Meaning when I click to go to Section One it doesn't have it's own content but rather it displays the first of it's child pages (e.g. Section One sub-page 1). The sub-menu for that section would be a list of all children within that section.

But, at the same time, some sections like Section Three, will just be that one page so I want it to behave as a normal page. Each of the sections will show up in the main menu as if they were all pages on the same level and you cannot tell that a page has children until you enter that page and then a sub-menu is displayed.

Does that make sense?

So how do I set that up? I can, of course, easily create the structure as a bunch of page and then child pages under them where necessary, but I don't know how to make it so that when I click a parent page it goes to it's first child rather than displaying it's own content. Is it possible?

Re: Page as just parent/section but no content? Displays first of children?

Posted: Thu Sep 04, 2008 5:09 am
by Dr.CSS

Re: Page as just parent/section but no content? Displays first of children?

Posted: Thu Sep 04, 2008 5:23 am
by Benek
I've done that, thanks.

Do you suggest I just disable the pages that have children so they don't show up in the menu and then replace that with a link in the menu that goes directly to the first child page of that parent?

My only problem with that is what happens if a content editor creates a new child page and moves it above the old first child. Then my link no longer points to the first child page. That's not as automated as I'd hope for.

Any better ideas?

Re: Page as just parent/section but no content? Displays first of children?

Posted: Thu Sep 04, 2008 9:27 am
by Dr.CSS
Well you didn't say that ;) you can use a page id number type thing for the link?...

Re: Page as just parent/section but no content? Displays first of children?

Posted: Thu Sep 04, 2008 9:33 am
by Benek
Page id number for the link? That sounds promising. Tell me more.

Do you mean that I can somehow create a link that will go to, say, 2.1 (.1 being the first child of section 2) and if I create a new child and move it up to the first spot it will take on that number--so the link will always point to first child even if that child changes?

Another option I can think of -- just create a redirect on the parent page that goes to it's first child. Hopefully it would redirect fast enough that the user would never notice. Bad idea?

Re: Page as just parent/section but no content? Displays first of children?

Posted: Thu Sep 04, 2008 2:37 pm
by RonnyK
Why not make the parent with the type of "Internal link" and point to the first child as the page to be opened.

Ronny

Re: Page as just parent/section but no content? Displays first of children?

Posted: Fri Sep 05, 2008 2:51 am
by Benek
Thanks RonnyK. I completely overlooked that option. That should work fine.

Re: [solved] Page as just parent/section but no content? Displays first of child

Posted: Fri Sep 05, 2008 6:21 am
by Dr.CSS
@ RonnyK, was trying to get them to read and learnĀ  ;)...