03

Mar

Anchor Links in Joomla
Written by Dawn E Chatman   

If you ever need to have an Anchor link in a Joomla article, let me enlighten you.

1) For anchor links to work in IE7, the name Can Not start with a number (0-9)

2) If the anchors are in the same article you'll have no problem, use the pull down in the popup link dialogue.

3) If the anchors are in a different article you Can Not link it normally, you Must hard code it.

eg:

<a 
onclick="document.location=
'index.php?option=com_content&amp;view=article&amp;id=122&amp;Itemid=209&amp;#i8'" 
href="javascript:void(0);"
>bio</a>

- Copy the location of the page,
- Edit the code to place it there
- add an: &amp;  to the end of the url
- add your #anchor
- Rule #1 also applies.

Comments
Add New
Write comment
Name:
Email:
 
Title:
 

3.23 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

Last Updated ( Friday, 26 June 2009 07:34 )
 
Follow me on twitter


© 2009 Dawn Chatman