Question on Linking within a page

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
battists
Forum Members
Forum Members
Posts: 14
Joined: Sat Sep 22, 2007 11:57 pm

Question on Linking within a page

Post 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... :(
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Question on Linking within a page

Post 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
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
battists
Forum Members
Forum Members
Posts: 14
Joined: Sat Sep 22, 2007 11:57 pm

Re: Question on Linking within a page

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

Re: Question on Linking within a page

Post by Dr.CSS »

The anchor tag/plugin comes with the install, read the bolded \/ words below to find the tag and parameters it uses...
battists
Forum Members
Forum Members
Posts: 14
Joined: Sat Sep 22, 2007 11:57 pm

Re: Question on Linking within a page

Post 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?
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Question on Linking within a page

Post by kermit »

try this...

{cms_selflink page='page-to-link-to' text='text to display in link' anchorlink='theanchorid'}
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
Post Reply

Return to “CMSMS Core”