Drupal Anchor Link

asked Mar 18, 2013 in Website Builder by DruNew (1,930 points)
Hi there..
I am using Drupal 7 and I want to create an anchor link that users can click on from the top of the page and it would direct them to a specific location down in the same page. Does anyone know how to do this? I would appreciate any help on this.
Thanks in advanced

1 Answer

0 like 0 dislike
answered Mar 18, 2013 by RalphK (5,800 points)
Add an ID or an anchor to the fields that you will be listing. You can use viewfields, and  add the anchor in the view or in a separate field. The ID should contain the node ID of the field you want to display as a unique identifier.  Then you can use something like this.
<div id="fields-[NID]"></div>
You can create this  field with a custom module and then you make the "see fields" links to #dates-[NID].