previous / next page only on sub-pages
Posted: Sun Aug 31, 2008 11:56 pm
Hi,
I've been trying to get cms_selflink to work on sub-pages. I have attempted to use the following code on my page, per a previous posting under this header:
i.e (in the first child):
{assign var='firstchild' value='1'}
and in the last child:
{assign var='lastchild' value='1'}
Then in my page template, I'd use:
{if !isset($firstchild)}{cms_selflink dir='prev'...}{/if}
and then
{if !isset($lastchild)}{cms_selflink dir='next'...}{/if}
Instead of the children, it is returning the parents, whether the code is placed on the template or the necessary page. Can anyone help me so that my selflink tags return the child only pages?
I appreciate any input and enjoy your day,
Brindle
I've been trying to get cms_selflink to work on sub-pages. I have attempted to use the following code on my page, per a previous posting under this header:
i.e (in the first child):
{assign var='firstchild' value='1'}
and in the last child:
{assign var='lastchild' value='1'}
Then in my page template, I'd use:
{if !isset($firstchild)}{cms_selflink dir='prev'...}{/if}
and then
{if !isset($lastchild)}{cms_selflink dir='next'...}{/if}
Instead of the children, it is returning the parents, whether the code is placed on the template or the necessary page. Can anyone help me so that my selflink tags return the child only pages?
I appreciate any input and enjoy your day,
Brindle