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.

Comments

merlinofchaos’s picture

How will you know what topic to display? Is this part of the URL?

carole’s picture

I want to show all topics on one page (with pager if they go over 20).

merlinofchaos’s picture

Then I don't understand what you want your header to show.

carole’s picture

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.

merlinofchaos’s picture

Status: Active » Fixed

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.

carole’s picture

StatusFileSize
new80.06 KB
new90.4 KB

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.

merlinofchaos’s picture

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.

carole’s picture

StatusFileSize
new13.2 KB

The Topics header does not show whether I check "Exclude from display" or not.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.