Page 1 of 1

cms_selflink

Posted: Mon Feb 18, 2013 12:14 pm
by douglas1438
Hi,

I'm using cms_selflink in the standard manner as below:

Code: Select all

{cms_selflink dir="prev" image="next.png" text="Previous"}
{cms_selflink dir="next" image="next.png" text="Next"}
But can't work out how to restrict it to one level.

I have case studies divided up in to sections and only want to be able to navigate previous/next in that section.

Am I barking up the wrong tree with selflink?

Thanks,
Chris

Re: cms_selflink

Posted: Mon Feb 18, 2013 6:13 pm
by Dr.CSS
I've seen the solution to this in the forum, don't remember where, try Search...

Re: cms_selflink

Posted: Mon Feb 18, 2013 6:50 pm
by calguy1000
There is no functionality in cms_selflink to restrict the prev/next stuff to the same parent.

You will need to do some work with CGSimpleSmarty.

Re: cms_selflink

Posted: Mon Feb 18, 2013 9:48 pm
by Rolf
Dr.CSS wrote:I've seen the solution to this in the forum, don't remember where, try Search...
Me too. I believe it used the extra field.

Re: cms_selflink

Posted: Mon Feb 18, 2013 10:28 pm
by calguy1000
See the get_sibling method in the CGSimpleSmarty help.

[Solved] Re: cms_selflink

Posted: Thu Feb 28, 2013 11:05 am
by douglas1438
get_sibling CGSimpleSmarty worked a treat, thank you.

Chris

Re: cms_selflink

Posted: Thu Feb 28, 2013 5:51 pm
by Dr.CSS