Anchors in Gantry

463 views
Skip to first unread message

Rebecca Fouts

unread,
Sep 24, 2013, 1:16:23 AM9/24/13
to gantry-framework...@googlegroups.com
How do anchor links work in Gantry?

Specifically, I want to know how I can place an anchor link in an article that will jump down to an article in a lower module position on the same page.

Grant Preston

unread,
Sep 26, 2013, 12:35:19 PM9/26/13
to gantry-framework...@googlegroups.com
Put link in the top article and then call for the unique id that you give to an element in the other article. Remember that an id must be unique and not used anywhere else on the page.

So you may give the lower article the following code <article id="unique-name">Your articles content</article>

Then in the top article you would place your link to that id such as <a href="#unique-name">Links to your lower article and is HTML5 compliant. Make sure to use the pound sign before the name you give as it represents the word id.


But I would no longer use the a name attribute. Use the code I supplied.

Hope that helps,

Grant


On Sep 23, 2013, at 10:16 PM, Rebecca Fouts <rebecc...@gmail.com> wrote:

How do anchor links work in Gantry?

Specifically, I want to know how I can place an anchor link in an article that will jump down to an article in a lower module position on the same page.

--
--
You received this message because you are subscribed to the Google
Groups "Gantry Framework for Joomla Users" group.
To post to this group, send email to
gantry-framework...@googlegroups.com
To unsubscribe from this group, send email to
gantry-framework-for-j...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/gantry-framework-for-joomla-users?hl=en
 
Gantry Framework Homepage: http://www.gantry-framework.org
 
---
You received this message because you are subscribed to the Google Groups "Gantry Framework for Joomla Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gantry-framework-for-j...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Simon Latham

unread,
Oct 8, 2013, 3:36:49 PM10/8/13
to gantry-framework...@googlegroups.com
Hi Grant,

I'm glad I read this because the name attribute is what I've been using. According to the discussion thread at the link you shared with Rebecca, id is the way to go.

Simon

On Thursday, 26 September 2013 17:35:19 UTC+1, WebTread wrote:

But I would no longer use the a name attribute. Use the code I supplied.

Reply all
Reply to author
Forward
0 new messages