cms_selflink

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
douglas1438
Forum Members
Forum Members
Posts: 80
Joined: Thu Jul 21, 2011 10:29 am

cms_selflink

Post 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
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: cms_selflink

Post by Dr.CSS »

I've seen the solution to this in the forum, don't remember where, try Search...
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: cms_selflink

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: cms_selflink

Post 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.
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: cms_selflink

Post by calguy1000 »

See the get_sibling method in the CGSimpleSmarty help.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
douglas1438
Forum Members
Forum Members
Posts: 80
Joined: Thu Jul 21, 2011 10:29 am

[Solved] Re: cms_selflink

Post by douglas1438 »

get_sibling CGSimpleSmarty worked a treat, thank you.

Chris
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: cms_selflink

Post by Dr.CSS »

Post Reply

Return to “CMSMS Core”