I've around 300 pages in wiki style (word -> explanation).

I need to create an overview page with all words categorized by first letter of page title/custom field (so basically [0-9] or a, b, c etc).

I would like to know you there are any already some good solution to do that? Also considering in best way to go :)

I need something like this (actually in 3 columns)

enter image description here


  • 1
    There is a views sample doing something similar called 'Glossary'. – Wtower Nov 11 '14 at 14:28

Add the field a second time so it appears twice in Fields, check exclude from display and uncheck link this field to the original piece of content. Under rewrite results check trim this field to a maximum length, and enter 1 in the textfield.

Under format click settings next to unformatted list, etc. and select the right field in the grouping options.

You'll probably need to adjust the sort criteria too

| improve this answer | |
  • Answer is still working with Drupal 8, thanks! – Jaeger May 12 at 14:18

Please Refer this, it may help you out.

| improve this answer | |
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Krishna Mohan Nov 19 '14 at 11:43
  • Create a view of that content type
  • Remove published date sort criteria and add the field you need as sort criteria in ascending order . It appears as Content: Title (asc) in sort criteria
| improve this answer | |
  • OK, but I need to group result by first letter of custom field. Please look on my screenshot in main post – Dmytro Pastovenskyi Nov 11 '14 at 15:31


Click "theme information" then look at the name of the file that applies to the node reference field.

Create a .tpl.php file with a candidate name that's specific enough for your needs will be something like views-view--viewname--fieldname.tpl.php.

Click the link for the template file in use in theme information for this field, and views will show you the code in that file. Copy & paste that code to your new file.

In the new file, you'll want to write a little PHP to output your links as a list. If you enable the devel module, put in the page, and inspect what's available. One of them will be an array of links. Output that.

Thank You.

| improve this answer | |

I ended up with solution from @Colin Shipton + column-count CSS property. That solutions works in all browsers except IE9 and less.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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