Relational Links between pages outside menu

General project discussion. NOT for help questions.
Post Reply
sonictrip
Forum Members
Forum Members
Posts: 99
Joined: Thu Jan 24, 2008 4:11 pm

Relational Links between pages outside menu

Post by sonictrip »

Is this possible? Seems like next and previous links only work when a page is set to "Show in menu"...

Can it be changed to work with pages that are not set to "Show in Menu" ???
Last edited by sonictrip on Tue Apr 01, 2008 11:26 am, edited 1 time in total.
Richardo P
Forum Members
Forum Members
Posts: 33
Joined: Fri Aug 17, 2007 8:35 am

Re: Pagination between pages outside menu

Post by Richardo P »

Instead of setting a page to 'not show in menu' you can untick this box so that it shows in the menu and then exclude it in your menu manager call using excludeprefix in your page template (or wherever else you are calling it) i.e:

{menu excludeprefix="alias1"}

or

{menu excludeprefix="alias1,alias2,alias3,alias4"}

I believe (not 100% sure) that pages that are excluded in menu manager like this (but still set to show in menu) should then show up in the next/prev links.  More info on Menu Manager can be found by going to Layout > Menu Manger > Help (top of the content area in admin)

Hope this helps,

Richard
sonictrip
Forum Members
Forum Members
Posts: 99
Joined: Thu Jan 24, 2008 4:11 pm

Re: Pagination between pages outside menu

Post by sonictrip »

Thanks for the info Richardo

Does that code go in the template or the menu manager somewhere?
Richardo P
Forum Members
Forum Members
Posts: 33
Joined: Fri Aug 17, 2007 8:35 am

Re: Pagination between pages outside menu

Post by Richardo P »

in your main template where ever you have called in your menu

You probably have somethign like:

{menu}

just replace it with:

{menu excludeprefix="alias1"}
sonictrip
Forum Members
Forum Members
Posts: 99
Joined: Thu Jan 24, 2008 4:11 pm

Re: Pagination between pages outside menu

Post by sonictrip »

Hey,

I tried the solution you mentioned in another thread with limiting the number of menu levels, worked a charm!

Code used for a 4 level menu to limit the products from displaying in the menu but keeping the relational links working between the level 4 products: {menu number_of_levels='3'}

Here's the other thread http://forum.cmsmadesimple.org/index.ph ... #msg101250

Thanks again Richardo!  ;D
Post Reply

Return to “General Discussion”