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 curtidas

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

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

2 curtidas

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 curtida

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 curtida

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 curtidas

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 curtida

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

1 curtida

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 curtida

Eu gostaria de adicionar meu voto para mais suporte a isso:

Alguns de nĂłs estamos muito acostumados a navegar pelas coisas com uma ordem cronolĂłgica estĂĄvel; isso nos ajuda a usar nosso “hardware” espacial humano para acompanhar o que vimos. A visualização “Mais Recentes” em constante mudança de um discurso (acoplada a todas as outras opçÔes de visualização e outros elementos da interface do usuĂĄrio) pode parecer um pouco caĂłtica e estressante.

E eu passei bastante tempo em nosso novo discurso entendendo e explicando que “Mais Recentes” na verdade tem duas variantes importantes, “Mais Recentes Ativos/Fixados” que vocĂȘ obtĂ©m se clicar no tĂ­tulo do site, e “Mais Recentes Criados” que vocĂȘ obtĂ©m se clicar no link de navegação Mais Recentes.

Atualmente, “Mais Recentes Criados” (?order=created) pode ser configurado como padrão para a visualização de Categorias, mas não para a visualização Mais Recentes.

TambĂ©m sentimos muita falta de ter um “Mais Recentes Criados/Fixados”. Atualmente, nas visualizaçÔes Mais Recentes e Categorias, podemos mostrar tĂłpicos cronologicamente, ou mostrar tĂłpicos de boas-vindas fixados no topo, mas nĂŁo ambos.

3 curtidas

Sim, eu ouvi vocĂȘ.

Acho que precisamos repensar a configuração da “página inicial” no Discourse para permitir que qualquer rota seja uma página inicial e dar aos usuários a flexibilidade de escolher a página inicial que desejam. Atualmente, temos 5 ou 6 itens no menu, mas na verdade poderíamos permitir centenas, permitindo um “personalizado
” para a página inicial.

3 curtidas

Adicionando Ă  diversĂŁo: Notei que, quando navego (de vĂĄrias maneiras) para “Top” ou “Hot”, frequentemente, mas nem sempre, ?order=created Ă© adicionado Ă  URL, o que frustra seu propĂłsito. Ainda nĂŁo descobri o que causa isso!

2 curtidas

Plugin para tornar created_at o padrão de ordenação: Created as Default Sort Order