[SOLVED] "top" anchor link on all pages within template?

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
User avatar
deejmer
Forum Members
Forum Members
Posts: 69
Joined: Thu Jan 11, 2007 7:32 pm

[SOLVED] "top" anchor link on all pages within template?

Post 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.
Last edited by deejmer on Wed Nov 07, 2007 5:21 pm, edited 1 time in total.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: "top" anchor link on all pages within template?

Post by calguy1000 »

what does the anchor tag at the top of the page look like? and the link tag at the bottom?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
deejmer
Forum Members
Forum Members
Posts: 69
Joined: Thu Jan 11, 2007 7:32 pm

Re: "top" anchor link on all pages within template?

Post 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.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: "top" anchor link on all pages within template?

Post by Dr.CSS »

Look in the tags for anchor, just replace Tags for Modules in bold below \/...
peedub

Re: "top" anchor link on all pages within template?

Post 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'}
User avatar
deejmer
Forum Members
Forum Members
Posts: 69
Joined: Thu Jan 11, 2007 7:32 pm

Re: "top" anchor link on all pages within template?

Post 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!
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: "top" anchor link on all pages within template?

Post by Dr.CSS »

[solved] ?...
Post Reply

Return to “CMSMS Core”