next/prev link - same level

General project discussion. NOT for help questions.
Post Reply
hazz
New Member
New Member
Posts: 9
Joined: Wed Sep 27, 2006 3:47 pm

next/prev link - same level

Post by hazz »

hello, has anyone successfully made next/previous links that move within a certain level?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: next/prev link - same level

Post by Dr.CSS »

As in?
hazz
New Member
New Member
Posts: 9
Joined: Wed Sep 27, 2006 3:47 pm

Re: next/prev link - same level

Post by hazz »

ok, say my pages are set up like this:

welcome
location
    -location1
    -location2
    -location3
about

all of these use the same template, which uses cms_selflink for the next/previous links.

right now 'next' goes from location3->about, but what i would like is it for it to stop at location 3, i.e. just move within the 2nd level under 'location'

location1 would have a n link, location2 n/pr, location 3 pr

possible? do i have to use a sep. template perhaps (annoying if im having to do that for each sub-section)? im wondering if there's a user-defined tag i could use, or perhaps a modification to cms_selflink.

hh.
hazz
New Member
New Member
Posts: 9
Joined: Wed Sep 27, 2006 3:47 pm

Re: next/prev link - same level

Post by hazz »

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

Re: next/prev link - same level

Post by Dr.CSS »

Which Ver. of CMSMS?
hazz
New Member
New Member
Posts: 9
Joined: Wed Sep 27, 2006 3:47 pm

Re: next/prev link - same level

Post by hazz »

the latest. im guessing there's an easy way to go about it, i'm just not approaching it right..
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: next/prev link - same level

Post by Dr.CSS »

Have you looked in the tags to see the help for self link...

Extensions » Tags click the self link word and you get Help with the parameters it takes...
SteveH

Re: next/prev link - same level

Post by SteveH »

Bumping this, as I've been trying to figure it out too. I'm using version 1.0.4, if that makes any difference.

So. Is there some way to limit the prev/next links to level in the hierarchy? I've read up on cms_selflink and played around with it, but cannot get the prev/next links to stop or reset at a certain point.

For example, in this current content structure:

1. Home
2. Foods
  2.1 Pizza
  2.2 Chips
  2.3 Chocolate
3. Drinks
  3.1 Tea
  3.2 Coffee

... then if you're on page 2.3 (Chocolate), the "Next" link is to 3.1 (Tea). Since those two topics are not in the same section, I don't want them associated this way. I would rather have something like "Next: No more topics in this section" or no "Next" line at all.

Ideas, anyone? Thanks in advance. Other than this pesky issue, I'm enjoying working with CMSMS!
Jonny
Forum Members
Forum Members
Posts: 77
Joined: Sun Sep 24, 2006 10:49 am

Re: next/prev link - same level

Post by Jonny »

Yes, I could find a use for this too. Queried it a while back. At present I'm using a different template for the last page in sections replacing the selflink tag with a fixed link to the home page or first page in the section. It adds an unwelcome layer of complexity for the end user.
heatherfeuer

Re: next/prev link - same level

Post by heatherfeuer »

I believe that if you make the parent a section header, the self links will work as you would like.  (Can't swear to it because I haven't actually tried it out yet.)
Post Reply

Return to “General Discussion”