Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Static and Dynamic Links

Quote Reply
Static and Dynamic Links
Hi,
If I wanted to hard code a link to a certain category on one of the templates, how would I do this so that it would work as a dynamic link on dynamic page and as a static link on a static page?
Thanks
George
Quote Reply
Re: [macbethgr] Static and Dynamic Links In reply to
If you use <%build_root_url%> as the location of the link, the template parser will convert the url to dynamic if running dynamic, or it will be replaced static under static.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Static and Dynamic Links In reply to
Then how can you link to a static page from a dynamic page?
Quote Reply
Re: [craven32] Static and Dynamic Links In reply to
Don't use <%db_cgi_url%> and the parser should leave the link alone.

eg: use "/" rather than <%build_root_url%>


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Static and Dynamic Links In reply to
I tried actually putting the url in as http://www.mysite.com/mypage.html but it still comes up as a dynamic link that leads to an error.

But once I changed it to just /mypage.html it worked fine. I just don't get it yet! Thanks alot for the help thoughSmile

Thanks,

Craven
Quote Reply
Re: [craven32] Static and Dynamic Links In reply to
It has to do with the page filtering, if d=1

Certain tags are looked for, and then replaced.


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.