many pages, only one menu item: is it possible?

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
bruco

many pages, only one menu item: is it possible?

Post by bruco »

A simple problem, but difficult to explain for me.  :-\

I have to split a very long text (among many other ones) into four pages (I call them chapters). However, I want that the title of the text corresponds to only one item in the navigation menu, avoiding to use any subtitles.
In practice, suppose that I have written a short novel titled "My true story", divided in four chapters.
I want that the item "My true story" in the navigation menu is linked with the first chapter, and that the page of the first chapter is linked to the page of the second one and so on, but that when I browse the successive chapters the *same* menu item "My true story" in the navigation menu is displayed as the "currentpage" one.

How to do it?

I have tried to do this in the following way: create a page for the first chapter, and three pages for the other chapters choosing the first page as their parent, and specifying (in Edit, Options) that they have not to appear in the menu.

But it seems to me that this is not the right (or the best) solution.
In fact:
1) I have to put manually on the first (parent) page the links to the other three, or on each page the link to previous and successive ones, since there are no relational links for interconnections in pages which do not appear in the navigation menu (not so serious)
2) When I browse one of the three "child" pages, menu do not display correctly the currentpage item. Indeed, it does not display the currentpage item at all, since page does not appear in the navigation menu (more serious).

Hoping to have explained my situation in an acceptable way, can someone tell me if there is a better solution to my problem?

Thanks to all you for your patience.
cyberman

Re: many pages, only one menu item: is it possible?

Post by cyberman »

Create five entries/pages (My true story, part 1, part 2, part 3, part 4) in admin panel. Go to Website, page part 1 and copy URL. Back to admin panel go to page My true story, change content type to link and paste the copied URL.

Now you can go to pages part 1-4. They should become now childrens from page My true story. Then you should go to tab Options of these pages and make "Show in menu" unchecked. Now you have to add on every page {cms_selflink dir="previous"} and/or {cms_selflink dir="next"}.

Works for me with default installation. As parent page My true story will be every time activated.

Thats all :) ...
Last edited by cyberman on Thu Nov 09, 2006 2:48 pm, edited 1 time in total.
bruco

Re: many pages, only one menu item: is it possible?

Post by bruco »

cyberman wrote: Works for me with default installation. As parent page My true story will be every time activated.
Sorry, but the most serious problem 2 still remains.
I have choosen the template " Top simple navigation + left subnavigation + 1 column". But in the left subnavigation panel, when browsing any child page NO "currentpage" entry is displayed. That is, the "My Story" entry is marked as "activeparent" and there is NO "currentpage" entry.

:(
Last edited by bruco on Thu Nov 09, 2006 5:54 pm, edited 1 time in total.
bruco

Re: many pages, only one menu item: is it possible?

Post by bruco »

cyberman wrote: Now you can go to pages part 1-4. They should become now childrens from page My true story. Then you should go to tab Options of these pages and make "Show in menu" unchecked. Now you have to add on every page {cms_selflink dir="previous"} and/or {cms_selflink dir="next"}.

Works for me with default installation. As parent page My true story will be every time activated.

Thats all :) ...
Sorry, it seems to me that there is another problem...
If I uncheck the "show in menu" box, then on pages part 1-4 (chapters), "previous" and "next" cms_selflink do not point to previous or next chapter, but to previous or next entry shown in the menu. Instead, I want that each chapter link to the previous one or next one.

Is there something that I haven't understood?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: many pages, only one menu item: is it possible?

Post by Dr.CSS »

If you go to Extensions » Tags and click the tag name you will get the help menu for it showing all the parameters they take...

You may want (optional) page - Page ID or alias to link to put the next chapters alias, found in the Options tab, in this to get to the next chapter...
bruco

Re: many pages, only one menu item: is it possible?

Post by bruco »

mark wrote: If you go to Extensions » Tags and click the tag name you will get the help menu for it showing all the parameters they take...

You may want (optional) page - Page ID or alias to link to put the next chapters alias, found in the Options tab, in this to get to the next chapter...
Ok. If I have understood, the suggestion to use
{cms_selflink dir="previous"} and/or {cms_selflink dir="next"}
was wrong, isn't it?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: many pages, only one menu item: is it possible?

Post by Dr.CSS »

If the page is set active but not to show in menu then standard "next" "previous" linking normal will not work it would have to be the alias of the page...

{cms_selflink dir="chapter1"} and/or {cms_selflink dir="chapter3"} this will have to be whatever the alias is...
bruco

Re: many pages, only one menu item: is it possible?

Post by bruco »

mark wrote: If the page is set active but not to show in menu then standard "next" "previous" linking normal will not work it would have to be the alias of the page...

{cms_selflink dir="chapter1"} and/or {cms_selflink dir="chapter3"} this will have to be whatever the alias is...
Yes, now it's clear, thank you. So, I need also to build a new template deleting the cms_selflink to next and previos page from the one I'm using, and inserting the proper cms_link in the pages instead in the template.

When I have some time to study the menu manager, I want to verify the possibility to convert the last "activeparent" class in "currentpage", when there is no "currentpage".
madman
New Member
New Member
Posts: 3
Joined: Mon Nov 13, 2006 11:14 am

Re: many pages, only one menu item: is it possible?

Post by madman »

bruco wrote:
Yes, now it's clear, thank you. So, I need also to build a new template deleting the cms_selflink to next and previos page from the one I'm using, and inserting the proper cms_link in the pages instead in the template.

When I have some time to study the menu manager, I want to verify the possibility to convert the last "activeparent" class in "currentpage", when there is no "currentpage".
I am new to this, so I could be wrong... but I think you can put the self links in the content, and save the trouble of making new templates.

P
bruco

Re: many pages, only one menu item: is it possible?

Post by bruco »

madman wrote: I am new to this, so I could be wrong... but I think you can put the self links in the content, and save the trouble of making new templates.
I think you are wrong. If I put cms_selflink in the template, I have to do only one time and the work is done for all the pages associated to such template. If I put cms_selflink in the content, I have to do this task as many times as many pages I have.
Locked

Return to “CMSMS Core”