Page 1 of 1

How do I link to the previous page?

Posted: Thu Apr 05, 2007 10:41 am
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

Re: How do I link to the previous page?

Posted: Thu Apr 05, 2007 10:54 am
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>
 

Re: How do I link to the previous page?

Posted: Thu Apr 05, 2007 2:04 pm
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! :)

Re: How do I link to the previous page?

Posted: Thu Apr 05, 2007 2:13 pm
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....

Re: How do I link to the previous page?

Posted: Thu Apr 05, 2007 4:23 pm
by soulja90
straight up - you are a genius! MUCH THANKS!