next/prev link - same level
next/prev link - same level
hello, has anyone successfully made next/previous links that move within a certain level?
Re: next/prev link - same level
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.
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.
Re: next/prev link - same level
Which Ver. of CMSMS?
Re: next/prev link - same level
the latest. im guessing there's an easy way to go about it, i'm just not approaching it right..
Re: next/prev link - same level
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...
Extensions » Tags click the self link word and you get Help with the parameters it takes...
Re: next/prev link - same level
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!
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!
Re: next/prev link - same level
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.
Re: next/prev link - same level
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.)