Page 1 of 1
[SOLVED] "top" anchor link on all pages within template?
Posted: Wed Nov 07, 2007 2:26 am
by deejmer
So I have a site up that has a link at the bottom of my main template. When clicked, I want it to go the the top/header of the CURRENT page, but currently it always goes to the top/header of the homepage. Is there a way to use cms-selflink to do this? Does anyone know a trick here? what am I missing?
THanks in advance.
Re: "top" anchor link on all pages within template?
Posted: Wed Nov 07, 2007 2:34 am
by calguy1000
what does the anchor tag at the top of the page look like? and the link tag at the bottom?
Re: "top" anchor link on all pages within template?
Posted: Wed Nov 07, 2007 2:37 am
by deejmer
Not sure I'm doing this right.....
this is the DIV where I want the user to "land":
This is the link in the footer:
Sorry if this is incredibly wrong.
Re: "top" anchor link on all pages within template?
Posted: Wed Nov 07, 2007 6:01 am
by Dr.CSS
Look in the tags for anchor, just replace Tags for Modules in bold below \/...
Re: "top" anchor link on all pages within template?
Posted: Wed Nov 07, 2007 3:51 pm
by peedub
What Mark said...
For example, in my template I've got at the top a table (or you can use a DIV) with the id="header" and a tag in the footer which goes to the header, so;
Code: Select all
<table id="header">
content stuff...
content stuff...
content stuff...
...
{anchor anchor='header' text='^ Top'}
Re: "top" anchor link on all pages within template?
Posted: Wed Nov 07, 2007 4:41 pm
by deejmer
Thank you guys so much! I just assumed it would be a cms_selflink function and I didn't see the anchor tag. Sorry for the lame post, but thanks for your help!
Re: "top" anchor link on all pages within template?
Posted: Wed Nov 07, 2007 5:18 pm
by Dr.CSS
[solved] ?...