On my glossary view, I want all letters (A to Z) to be listed whether I have an entry starting with that letter or not. If a letter is clicked with no entry starting with it, I want to display a custom error message. I believe the latter can be easily configured by using the "No result behavior" settings.

However, I have no idea how can I make the views display all the letters regardless of having entries or not.

Thanks...

Comments

dawehner’s picture

Just an idea: you could use a some header text to link to all possible items.
This though doesn't allow you to get the count of items.

The problem is that the items are generated via a database query which will not result not-used characters

hgurol’s picture

Can anyone think of a better workaround?

kerryman’s picture

Create a content type for the missing letters. For each missing letter, create content with with title = letter, body = error message. Include this type in your view. If you know which letters are missing you could stop there, if not you could create content for all letters and then add some logic to only display these types if it's the only result for that letter.

MustangGB’s picture

Issue summary: View changes
Status: Active » Closed (outdated)