Gossamer Forum
Home : Products : Gossamer Links : Discussions :

next and previous urls

Quote Reply
next and previous urls
Hi,

i tried to keep 'next and previous'urls on detailed page. I put this code:

<a href="<%prev_url%>"><%body_font%>Previous Link</font></a>&nbsp;&nbsp;||&nbsp;&nbsp;<a href="<%next_url%>"><%body_font%>Next Link</font></a>

Once there is no link after last link, i am getting forbidden error to mydomain.com/cgi-bin/resources/ folder. Where to change it?

Thanks.
Quote Reply
Re: [hegu] next and previous urls In reply to
I had the same problem. You can surround the prev url and next url with if statements to check that they really exist. This is what I do (paraphrased).

<%if prev_url%><a href="<%prev_url%>"><%body_font%>Previous Link</font></a>&nbsp;&nbsp;||<%endif%>&nbsp;&nbsp;<%if next_url%><a href="<%next_url%>"><%body_font%>Next Link</font></a><%endif%>
Quote Reply
Re: [webslicer] next and previous urls In reply to
Thanks. It is working.

Last edited by:

hegu: Apr 23, 2003, 9:52 PM
Quote Reply
Re: [hegu] next and previous urls In reply to
Cool