How to reveal Sort field as a header
carole - November 14, 2009 - 20:42
| Project: | Views |
| Version: | 6.x-2.7 |
| Component: | page displays |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
I have a node type called Links and I've tagged them with a field called Topics. I want to create a Links page that shows the Links, sorted by Topics, and reveals the Topics content as a header above the results below it. Can I do this with one page view? How would you do this more easily than one block per topic and showing them on the same Links page? I don't even think paging would work if I took the blocks approach.
I don't know how many links will be under each topic, but I want a flexible design that can accommodate short or long lists.

#1
How will you know what topic to display? Is this part of the URL?
#2
I want to show all topics on one page (with pager if they go over 20).
#3
Then I don't understand what you want your header to show.
#4
Merlinofchaos, thanks for your questions. It'll look like:
Links Page
Here are some helpful links.
Topic1
www.google.ca
www.msn.com
www.yahool.ca
Topic2
www.something.com
www.two.com
www.google.ca
...
Topic1, Topic2, etc. are options in the dropdown list "Topics", which I am sorting by. Now, my page shows as above without the "Topic1," "Topic2," headers, which I don't know how to show as a header.
Requirements:
1) I only want the topic to show once, before the first node in the list (however repeating it at the top of a page if there's a break in that page would be nice to have)
2) One URL can show under many topics
Thanks for your help.
#5
Ah! For that, what you want is to go to the style settings and there's a 'grouping field' setting. Choose the field that represents the topic. Then in the settings for the topic field, set it to 'exclude' so it won't get displayed normally.
#6
Merlin, that seemed easy, but it's not working. Anything pop out at you in my screenshots? When I search for issues/help, I find some unrelated bugs, I've set my theme back to Garland to ensure it's not an issue, Theme Developer is not enabled... It's hopefully a user error, but I can't see it.
#7
I'm not sure what you mean by 'not working'; being more specific would help. I will say that on the field, 'exclude from display should be checked.
#8
The Topics header does not show whether I check "Exclude from display" or not.
#9
Automatically closed -- issue fixed for 2 weeks with no activity.