Page 1 of 1
Anchor Issue
Posted: Tue Apr 21, 2009 5:18 pm
by Dipankar
Hi ....
I am encountering a funny problem with CMSMS with Anchor tag..... I have use the given code:-
Single-Origin Dark
Single-Origin Dark
Both are on the same.... when I click on the above link to got to the target paragraph, it actually goes to the index page... and this is happening with all the anchor tags.....
But when I test the same HTML format on my Local machine, it works fine....
Is there any special method of applying a Anchor tag in CMSMS....?
thanks

Re: Anchor Issue
Posted: Wed Apr 22, 2009 4:08 pm
by tyman00
http://forum.cmsmadesimple.org/index.php?action=search2
Type in anchor you're answer should be covered. This has been widely discussed on the forum.
Re: Anchor Issue
Posted: Sat May 09, 2009 2:14 pm
by twwitt
This link doesn't go anywhere that I can see. And there really isn't a very good answer to this question anywhere that I can find.
Re: Anchor Issue
Posted: Wed Jun 17, 2009 10:36 am
by paulbaker
Hi
In Admin, go to Extensions -> Tags and you will see an anchor tag. Click help and you will see how to use it:
Help for the anchor tag
What does this do?
Makes a proper anchor link.
How do I use it?
Just insert the tag into your template/page like: {anchor anchor='here' text='Scroll Down'}
What parameters does it take?
anchor - Where we are linking to. The part after the #.
text - The text to display in the link.
class - The class for the link, if any
title - The title to display for the link, if any.
tabindex - The numeric tabindex for the link, if any.
accesskey - The accesskey for the link, if any.
(optional) onlyhref - Only display the href and not the entire link. No other options will work
The problems you are seeing are because the the ? and following text in your URL is being lost and so the browser sends you back to your index (home) page rather than moving to another section of the page you are on. The anchor tag solves this problem. Just place the tag, with appropriate parameters, in your template.
Paul
Re: Anchor Issue
Posted: Wed Jul 15, 2009 10:40 pm
by Dr.CSS
You may also be missing the base href in