Page 1 of 1

Re: How do I create a previous and next links for sub pages please

Posted: Sun Apr 25, 2010 9:32 pm
by Dr.CSS
I believe if you have pages set to not show in menu they won't show in next/prev. you may have them set this way to not have them show in top menu but it may be better to set them to show in menu then set menu to number_of_levels='1' so it only shows top level menu items...

Re: How do I create a previous and next links for sub pages please

Posted: Mon Apr 26, 2010 6:22 am
by allan1412
Have you tried using the CGSimpleSmarty module and something like:

{$cgsimple->get_sibling("prev","prev_sibling")}
{if !empty($prev_sibling)}
{cms_selflink page="$prev_sibling" text="Previous"}  {/if}

{$cgsimple->get_sibling("next","next_sibling")}
{if !empty($next_sibling)}
{cms_selflink page="$next_sibling" text="Next"}{/if}