Show latest list sorted by creation date

Hi, I have seen few topics with the solution I am looking for.

I think my question is very similar to latest @abcoathup question in this post.

However, this was not answered. How can I configure my discourse site so that when users enter the main address they jump directly to mysitedomain/latest?order=created ?

And additionally, when users press on the button latest, how I configure the site so that they are re-directed to mysitedomain/latest?order=created. ?

Thanks!

4 Me gusta

This is not possible at the current time, nor is it planned.

You can use search, if you select “sort by latest topic”.

2 Me gusta

Hi @codinghorror, can you point me the way to search how I can modify this? I would love to see the latest list sorted by creation date.

1 me gusta

I (kinda) solve this on my forum by using redirect links, thanks to this post:



Change yoursite.com for the name of your site.

NOTE: If you are a developer, please understand that I’m not. Please dont hate me for doing this :stuck_out_tongue_closed_eyes: I know this is not the proper way to do this.

1 me gusta

I get this to work by modifying this component a litter bit, that is, adding a button for ‘sorted by date’

where I passed in a url query in setting by:

unfinished; unfinished; ?tags=unfinished
created-time; created-time; ?order=created

and check search param in the script:


  api.modifyClass("component:navigation-item", {
    active: Ember.computed("contentFilterMode", "filterMode", function() {
      let contentFilterMode = this.get("content").get("filterMode");

      if (decodeURIComponent(window.location.search) === location) { // check search param
        return contentFilterMode.includes(filter); // if includes this param, active = true;
      } else {
        return this._super(contentFilterMode, this.get("filterMode"));
      }
    })
  });

This works for me but this script will refresh whole page rather than just the inner part, is there a way I can make it only refresh inner topic component?

2 Me gusta

Hi @HeyRR, have you got this resolved. Would be interested as well as many of our members are requesting a possibility to order the latest page by creation date and not by activity date?

1 me gusta

No luck, sorry, currently I just use the solution I mentioned above, I’m not super familiar with the structure.

1 me gusta

We’d like to see this in our Discourse community. We are new to Discourse but currently finding it difficult to moderate our community and ensure no user feedback, questions etc slip through the cracks. Since we are all working across different time zones the handoff from one moderator to another can be tricky. It would be great if we could easily choose to see all activity created on a certain day. That way if there is a gap in our handover we would see any activity for the hours we were not ‘on call’ It would also help us to see who should be responding to activity based on when it was created.

1 me gusta

Me gustaría añadir mi voto para más apoyo a esto:

Algunos de nosotros estamos muy acostumbrados a navegar por las cosas con un orden cronológico estable; esto nos ayuda a utilizar nuestro “hardware” espacial humano para hacer un seguimiento de lo que hemos visto. La vista “Últimas” cambiante de un discurso (junto con todas las demás opciones de vista y otros elementos de la interfaz de usuario) puede resultar un poco caótica y estresante.

Además, he pasado bastante tiempo en nuestro nuevo discurso entendiendo y explicando que “Últimas” tiene en realidad dos variantes importantes: “Últimas activas/fijadas” que se obtienen si se hace clic en el título del sitio, y “Últimas creadas” que se obtienen si se hace clic en el enlace de navegación “Últimas”.

Actualmente, “Últimas creadas” (?order=created) se puede configurar como predeterminada para la vista de Categorías, pero no para la vista de Últimas.

También echamos mucho de menos tener una opción de “Últimas creadas/fijadas”. Actualmente, en las vistas de Últimas y Categorías podemos mostrar temas cronológicamente, o mostrar temas de bienvenida fijados en la parte superior, pero no ambos.

3 Me gusta

Sí, te escucho.

Creo que necesitamos repensar la configuración de la “página de inicio” en Discourse para permitir que cualquier ruta sea una página de inicio y dar a los usuarios la flexibilidad de elegir la página de inicio que deseen. Actualmente tenemos 5 o 6 elementos en el menú, pero realmente podríamos permitir cientos al permitir un “personalizado…” para la página de inicio.

3 Me gusta

Para añadir a la diversión: He notado que cuando navego (de varias maneras) a “Top” o “Hot”, a menudo, pero no siempre, se les añade “?order=created” a la URL, lo que anula su propósito. ¡Aún no he descubierto qué activa esto!

2 Me gusta

Plugin para hacer que created_at sea el ordenamiento predeterminado: Created as Default Sort Order