Page 1 of 1

Question on Linking within a page

Posted: Tue Jun 10, 2008 3:11 am
by battists
OK, so I don't know if I'm the world's worst forum-searcher or what, but for some reason I just can't find an answer to something that seems like a very easy question:

I'm using CMS Made Simple 1.1.3.1 "Apia", and I can't for the life of me figure out how to link to an anchor point within the same page.

In other words, I want to have a list of links at the top of a page that link to other sections lower in the page. But, whenever I try this, the link just takes me to my top page.

The latest format I've tried is below. Can some kind soul please show me the light?

Code: Select all

<p>The Rules page defines the select league's set of core rules. The Rules page is divided into six sections, described below.</p>

<a href="#historical_rookies_options">test link</a>

<p><a name="historical_rookies_options" title="historical_rookies_options" class="aname"></a><h5>Historical Rookies Options</h5></p>
The goal is for the href in the middle there to jump me to the "a name" below.

Thanks very much for any help... :(

Re: Question on Linking within a page

Posted: Tue Jun 10, 2008 3:54 am
by kermit
1. for site security, you should upgrade to current stable version soon as you can

2. look at the anchor tag (plugin).

{anchor anchor='pagelink' text='click here'}


.. somewhere else on the page ...


PageLink Section

Re: Question on Linking within a page

Posted: Tue Jun 10, 2008 4:42 am
by battists
Will give it a try, thanks!

Unfortunately, I'm just an editor and don't have control over upgrading, but I'll pass that info along!

Just curious, when you say "plugin," does that mean that the anchor tag is not something that exists in the build by default, but something I'd have to get added in?

Thanks!

Re: Question on Linking within a page

Posted: Tue Jun 10, 2008 5:56 am
by Dr.CSS
The anchor tag/plugin comes with the install, read the bolded \/ words below to find the tag and parameters it uses...

Re: Question on Linking within a page

Posted: Sat Jun 14, 2008 4:57 am
by battists
Thanks very much, I believe this answers my question.

Except that I have one more. Once I make an anchor, can I then refer to that anchor from another page as well?

Re: Question on Linking within a page

Posted: Sun Jun 15, 2008 11:32 am
by kermit
try this...

{cms_selflink page='page-to-link-to' text='text to display in link' anchorlink='theanchorid'}