Discourse-home-page

discourse-home-page

This Discourse plugin allows to set any existing Discourse page (a topic, a category, etc.) as the home page of your Discourse instance.

The repo is here:

https://github.com/sylque/discourse-home-page

This plugin is especially useful when used with DiscPage.

Settings

  • discourse_home_page_enabled : set to true to enable the plugin

  • discourse_home_page_path : path of the home page. For example /t/12 will set the home page to topic 12 and /c/5 will set the home page to category 5.

    **** EDIT, NEW FEATURE:

    You can support localized home pages by adding more values to
    discourse_home_page_path. For example, the following will redirect
    French-speaking users (as detected by Discourse) to topic 13,
    German-speaking users to topic 14 and all other users to topic 12.

      /t/12
      fr,/t/13
      de,/t/14
    

Drawback

When the home page points to a topic, the url in the address bar is changed to the topic url.

Example: if your Discourse url is www.mydiscourse.org and you set the home page to /t/mytopic/12 , then any user coming to www.mydiscourse.org will see www.mydiscourse.org/t/mytopic/12 in the address bar.

Warning

This plugin ia based on a hack. There is no certainty it will keep working in future versions of Discourse, even though I’ll do my best to maintain it.

There is this line in Discourse which might cause an issue, but I couldn’t get my Discourse instance to run through it. Please let me know if you can.

16 curtidas

Thanks and I have another question is!
How to set homepage like this https://meta.discourse.org/
Currently the homepage I am displaying new posts and categories such as Categories - Discourse Meta

2 curtidas

That can be achieved by setting your homepage to Latest Topics. You can make that change my running your site’s setup wizard again and selecting Latest Topics in the Hompage step. Specifically, go to /wizard/steps/homepage to see this step. You won’t need a plugin to set this.

3 curtidas

Hi @Bcat.

If your question is “How do I set my home page to Latest Topics”, then see @osioke’s answer above.

If your question is “How do I set my home page to an external website”, then the answer is: it is not possible using this plugin.

3 curtidas

Thanks a lot, so it’s located /wizard/steps/homepage before I kept looking at settings.

2 curtidas

Hello,

I am a newbie from France, I can’t find How to set homepage like this Categories - Discourse Meta

If you need to set the category page as your home page, I believe this plugin is not required. Just run the Discourse wizard (https://forum.yourdomain.com/wizard) and change the Homepage combo box.

1 curtida

Olá! Estou na v3.1.0 e este plugin tem funcionado lindamente até ~semana passada. Não mudei nenhuma configuração, mas agora não consigo promover nenhuma nova postagem para ser destacada. Há algo que eu possa verificar para solucionar o problema? Obrigado :slight_smile:

1 curtida

Parece que há uma atualização para o plugin. Você pode verificar se tem a versão atualizada indo em /admin/plugins no seu site. Você tem 05c0098 na coluna de versão?

2 curtidas

Olá @victoria1. Não tenho nenhum problema aqui com o Discourse versão 3.3.0.beta1-dev e o Discourse-home-page versão 1.0.6. Qual versão do plugin você está usando? (por favor, verifique /admin/plugins como aconselhado por @jericson)

3 curtidas

Percebo que as versões mais recentes deste plugin (>= 1.0.5) podem não ser retrocompatíveis com versões mais antigas do Discourse. Você poderia me fornecer o endereço do seu fórum? (não precisa de acesso completo, a página inicial pública é suficiente) Isso me permitiria dar uma olhada melhor.

2 curtidas

Obrigado por investigar isso! :folded_hands:

1 curtida

@victoria1, implementei uma nova versão do plugin (v1.0.7) que espero que resolva seu problema. Por favor, tente e me diga.

(para referência, o problema está rastreado aqui)

3 curtidas

Uau, incrível! Muito obrigado, @syl! :pray:

Parece que 2/3 das minhas postagens com a tag ‘featured’ estão aparecendo. Estou tentando descobrir o que é diferente na terceira. Todas têm pelo menos 1 imagem para usar como miniatura e tentei remover e adicionar a tag novamente.

1 curtida

@victoria1, o plugin discourse-home-page não está relacionado a posts ‘em destaque’. Você tem certeza de que seu problema é causado por este plugin?

Eu pensei que sim, mas fico feliz em estar errado :sweat_smile:

A tag ‘featured’ é apenas a tag que escolhi para eleger posts para o plugin discourse-home-page!

Hmm, era o que eu pensava: este tópico é sobre o plugin discourse-home-page, enquanto o seu problema se relaciona com o plugin discourse-homepage-feature-component :slight_smile: Então, você pode querer perguntar aqui.

1 curtida

Ack! Sim. Obrigado pelo seu tempo e desculpe por tê-lo desperdiçado :pray:

1 curtida