Page 1 of 1
Relational Links between pages outside menu
Posted: Mon Mar 31, 2008 5:24 pm
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"

Re: Pagination between pages outside menu
Posted: Tue Apr 01, 2008 8:57 am
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
Re: Pagination between pages outside menu
Posted: Tue Apr 01, 2008 9:36 am
by sonictrip
Thanks for the info Richardo
Does that code go in the template or the menu manager somewhere?
Re: Pagination between pages outside menu
Posted: Tue Apr 01, 2008 9:38 am
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"}
Re: Pagination between pages outside menu
Posted: Tue Apr 01, 2008 11:26 am
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!
