Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14625 reviews 1734 hosting providers

Questions & Answers

Drupal Anchor Link

Mar 19, 2013 by DruNew
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 votes
Mar 19, 2013 by RalphK
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].