Index onderwerp aanmaken

AI-generated summary

alltiagocom asks if it is possible to create an “index topic” that automatically updates with links to other topics tagged with a specific label (e.g., #index). They also inquire about changing the sort order on tag pages to creation date rather than latest activity. sbrawley supports the idea, noting that some users prefer manually curated indexes over standard tag filtering, while tobiaseigen suggests using a wiki topic for manual maintenance or exploring the Discourse Docs feature for sidebar navigation, asking for more detail on the specific use case.

satonotdead recommends a component called “Doc Categories Tags” that might address the need. After alltiagocom expresses confusion about its function, satonotdead explains that it mixes topics with specific tags into one category’s list and provides a docs-style sidebar. alltiagocom seeks further clarification on whether the component allows admins to map arbitrary tags to specific categories (e.g., mapping blue, orange, and green tags to a my-links category). satonotdead confirms that the component extends the existing “Discourse Category Docs” feature to tags, allowing admins to experiment with configurations on a test instance to understand its behavior.

Let’s see if I can explain what I would like to do…

I want to create a topic (“My index“) that will only contain links to other topics, added automatically via some kind of “system”, a “tag”, I don’t know.

So, using a tag as an example, when I create a new topic (“My book“) and I add the tag #index, this topic would automatically be added to “My index” as a link in the body.

So “My index” would keep updating with links to topics that contain the tag #index.

Is this possible?

I’m aware that I could just share the link to the tag page, but I was wondering if this would be possible with a topic instead?

If I end up having to use the tag route, would I be able to make the topics on that page (the tag page) not sort by “latest”? If I want the topics to be ordered by creation date (newest to oldest), but for that specific tag only.

I completely understand what you’re describing with an index topic! This would have been really handy a few months ago when we were using a category to kind of organically create an FAQ. Despite showing my users how to filter the topic list by tags, share links to tag pages, etc., one of them ended up creating and managing an index on their own with a Word doc that linked to the topics. It was so interesting, because they organized the index Word doc the same way the topics were tagged.

Anyway, if an index topic as @alltiagocom describes is possible, I think it’s a great way to provide an alternative option for those stubborn users who simply have different preferences for viewing and finding information they’re looking for. Yes, they could just use the current tag filtering… but in the case of my community, some people will do extraordinary things when something that could be useful doesn’t exist.

This is interesting. People use Discourse in so many different ways!

@alltiagocom can you explain your use case in some more detail? Why do you want to create a topic that contains an automatically generated list of topics with a certain tag? Can you share an example of what you’d like this to look like?

I think I understand @sbrawley case, for organically creating a FAQ. But unless you’re talking about a huge list, why not just maintain a topic with a list of links in it manually? That way you can also control the appearance of it and specify the ordering. Your members seem to be on the right track, though a topic (which you can make a wiki and maintai n collaboratively) is of course more suitable than a word doc.

There is Discourse Doc Categories which lets you specify a topic as index for documentation, where you can insert links that are then used in the sidebar navigation.

You can see an example of this in action in Documentation. Example index: Using Discourse Index

Hey there! I built something that might be interesting to you:

I was trying to understand what the component does, but I’m not getting there. Can you please clarify? I visited the link to your community, but that didn’t help, because each topic has different tags.

Hi there, I think this is very descriptive?

Mixes topics with a tag into one category’s list, and gives topics listed in a doc index the docs sidebar

So, you can use wiki tag and also other tags on different categories and they would be grouped into the specific wiki categories using the Discourse Docs expected behavior.

Correct me if I’m wrong. This is the current and normal behavior:

  • a normal category holds all topics in that category
  • a normal tag page holds all topics in that tag

your component uses a category (is it always wiki or the admin can pick any name?) and that category includes all topics with specific tags?

So if my category is my-links and I define that tags blue, orange, green should go in that category, all topics with one or more of those tags would be shown under example.com/c/my-links. Something like that?

To be completely honest, I don’t quite remember why I wanted this feature to begin with, so I’m trying to figure out if your component fits that requirement, but I’m still interested in knowing how it actually works. I can see how it can be valuable, though.

Thanks!

Discourse Category Docs only works when choosing categories. This extends the feature to tags.

I tried to upload it to the Theme Creator Discourse instance, but I couldn’t. I think that if you try it, you will be able to answer all your questions easily.

You can play around with it on admin-scoped categories/tags and all their changes are reversible.