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 Mi Piace

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 Mi Piace

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 Mi Piace

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 Mi Piace

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

2 Mi Piace

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 Mi Piace

Ciao! Sono alla v3.1.0 e questo plugin ha funzionato benissimo fino a circa la settimana scorsa. Non ho cambiato nessuna impostazione, ma ora non riesco più a promuovere nuovi post per metterli in evidenza. C’è qualcosa che posso controllare per risolvere il problema? Grazie :slight_smile:

1 Mi Piace

Sembra che ci sia un aggiornamento del plugin. Puoi vedere se hai la versione aggiornata andando su /admin/plugins sul tuo sito. Hai 05c0098 nella colonna della versione?

2 Mi Piace

Ciao @victoria1 . Non ho alcun problema qui con Discourse versione 3.3.0.beta1-dev e Discourse-home-page versione 1.0.6. Quale versione del plugin stai usando? (controlla /admin/plugins come consigliato da @jericson)

3 Mi Piace

Mi rendo conto che le versioni più recenti di questo plugin (>= 1.0.5) potrebbero non essere retrocompatibili con le versioni precedenti di Discourse. Potresti fornirmi l’indirizzo del tuo forum? (non è necessario l’accesso completo, basta la pagina di destinazione pubblica) Questo mi permetterebbe di dare un’occhiata più approfondita.

2 Mi Piace

Grazie per aver dato un’occhiata! :folded_hands:

1 Mi Piace

@victoria1, ho distribuito una nuova versione del plugin (v1.0.7) che spero risolverĂ  il tuo problema. Provala e fammi sapere.

(come riferimento, il problema è tracciato qui)

3 Mi Piace

Oh wow, fantastico! Grazie mille, @syl! :pray:

Sembra che 2/3 dei miei post con il tag ‘featured’ vengano visualizzati. Sto cercando di capire cosa sia diverso con il terzo. Tutti hanno almeno 1 immagine da usare come miniatura e ho provato a rimuovere e riaggiungere il tag.

1 Mi Piace

@victoria1, il plugin discourse-home-page non è correlato ai post “in primo piano”. Sei sicuro che il tuo problema sia causato da questo plugin?

Pensavo cosĂŹ, ma sono felice di sbagliarmi :sweat_smile:

Il tag ‘featured’ è solo il tag che ho scelto per eleggere i post per il plugin discourse-home-page!

Hmm, è quello che pensavo: questo thread riguarda il plugin discourse-home-page, mentre il tuo problema riguarda il plugin discourse-homepage-feature-component :slight_smile: Quindi potresti voler chiedere qui.

1 Mi Piace

Ack! SĂŹ. Grazie per il tuo tempo + scusa per averlo sprecato :pray:

1 Mi Piace