How do I link to the previous page?

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
soulja90
Forum Members
Forum Members
Posts: 83
Joined: Tue Mar 13, 2007 10:56 pm

How do I link to the previous page?

Post by soulja90 »

I was going through the 'tags' but couldn't figure it out.

I would like to link to the previous page of each page.

What should I put in my template?

{cms_selflink page="dir start/next/prev/up"}

I used the code above but didn't work :(

Thanks for your help

JB
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How do I link to the previous page?

Post by RonnyK »

JB,

in the standard templates is the tag available and you can just copy it to your template.

Ronny.

Code: Select all

         <div class="left49">
            <p>{cms_selflink dir="previous" label="Previous page: "} <br />
            {cms_selflink dir="next"}</p>
         </div>
 
Last edited by RonnyK on Thu Apr 05, 2007 10:56 am, edited 1 time in total.
soulja90
Forum Members
Forum Members
Posts: 83
Joined: Tue Mar 13, 2007 10:56 pm

Re: How do I link to the previous page?

Post by soulja90 »

Thanks Ron!

One more question

I have a page for example

this one page has links to 5 other pages - under this page (Under the category) I guess you can see . . .

Is there a tag that I can use to put on this one page that shows links to my other 5 pages or as many as I add?

Thanks

JB

PS: THANK YOU! :)
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm

Re: How do I link to the previous page?

Post by RonnyK »

JB,

the first one that comes to my mind is {sitemap}.

You can use:

Code: Select all

{sitemap start_element="3"}
Where the start_element is the root of which you want to show all children. If your root is 1.2, you'll enter that as a start_element.

Ronny

There might be other tags usable as well....
Last edited by RonnyK on Thu Apr 05, 2007 6:06 pm, edited 1 time in total.
soulja90
Forum Members
Forum Members
Posts: 83
Joined: Tue Mar 13, 2007 10:56 pm

Re: How do I link to the previous page?

Post by soulja90 »

straight up - you are a genius! MUCH THANKS!
Post Reply

Return to “CMSMS Core”