Sort tagged topics by creation (or tagging) date


#1

You can order topics within a category by creation date with ?order=created but you can’t do that with tags.

The only workaround is to use the search feature but this feature has limitations. For instance it doesn’t show more than 175 results (e.g. Search results for ‘#pr-welcome order:latest_topic’ - Discourse Meta)
Also it doesn’t work with several plugins.

A real solution like order=created would solve that.


(Sam Saffron) #2

I am still not following:

https://meta.discourse.org/?order=created&tags=docker

https://meta.discourse.org/?order=op_likes&tags=docker

And so on


#3

Awesome! Didn’t know you have to put the order before the tag.
However it doesn’t work on blenderartists. Where is the documentation for all these url suffixes?
@bartv any idea why it doesn’t work on blenderartists?


(David Kingham) #4

I concur that neither options I have found for this work on my site either, I have tried both of these and they throw me to the home page.

/?tags=lightroom&order=created_at
/?order=created&tags=lightroom


(Mittineague) #5

I notice that here at meta the links Sam posted are routed to “/latest?tags=” i.e. the query parameters are added to a page path and not the / directory.

Might it be that latest needs to be the “home” page for these to work without explicitly using latest in the URL?
In other words, if the category list page is “home” it can’t be sorted / filtered as the latest list page can be.


(David Kingham) #6

I think you’re on to something, this seems to be working on my site

/latest?order=created&tags=lightroom


#7

I confirm, adding /latest does the trick. Thanks @Mittineague!
Although the Topic List Preview plugin doesn’t cope well with it, as it doesn’t display the thumbnails like it does with the default tag listing.


(David Kingham) #8

My topic list preview is working for this, do you have tags and latest in the topic_list_thumbnail setting?

image


#11

Not “latest” because blenderartists.org is kind of half for artwork and half for help on using the program, so enabling thumbnails on latest would be problematic (tech support topics shouldn’t have thumbnails).
Could there be any workaround?


#12

To the developers of Discourse: would it be possible to implement a “/tags/some-tag?order=created” system?
That would allow the Topic List Preview add-on to work along with it.


(Sam Saffron) #13

OK let me clarify, you have:

https://blenderartists.org/latest?order=created&tags=architecture

But want that displayed like:

https://blenderartists.org/tags/architecture

So you have 3 options here:

  1. Get @angus to add some magic option here for you
  2. Turn on topic preview everywhere and not only on tags
  3. Submit a PR to core that adds order support to the tags route (not against this)

#14
  1. not happening. Enabling thumbnails on tech support topics is a waste of space
  2. didn’t quite get that. What’s a PR?

(Sam Saffron) #15

A change request of contributed code by the community to our Discourse repo at: GitHub - discourse/discourse: A platform for community discussion. Free, open, simple.

If you wanted to kick start this change you could post to #marketplace with a budget.


#17

I have no knowledge in any of the languages that Discourse is made with so I can’t make a pull request myself and since the issue tracker is disabled, I guess I just have to keep this request here and be patient.


(Bart) #18

I’ll see if there are drawbacks to enabling topics preview everywhere (I have concerns about layout and performance), and if needed I can chat with Angus too to see if this is something he thinks is worth doing.


(Angus McLeod) #19

You guys want this route sorted by tag creation to match with the featured topics order right?


(Bart) #20

Yeah exactly. Right now the user experience of going from the featured row to the featured gallery is weird as their order is different.


(Angus McLeod) #21

This has been addressed, insofar as it applies to featured topics in the Topic List Previews plugin:


#22

Great!
One issue solved.
Is it possible to expand it to work with any tag?