I want to generate a table of contents made up of the titles of the nodes listed within a view, which will then be displayed at the top of that view. The nodes are of just one content type.

I've spent the last couple of days looking through the pre-existing modules, but thus far they all seem to generate TOCs only for one particular node.

Can anyone point me in the correct direction?

1 Answer 1


You can make use of the attachment display in Views.

  1. Create your normal view
  2. Add an attachment display to that view:

enter image description here

  1. Set "Attach to" to your normal view display
  2. Configure the attachment display to show titles of your content types nodes.
  • Ah, I was focussing too much on finding a module rather than just building it myself. Many thanks, that worked very well. Also, for anyone in future looking for help with connecting up the in-page anchor links, I found this link useful: drupal.org/node/1253530.
    – JBass
    Apr 13, 2015 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.