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

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

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

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

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

「いいね!」 2

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

こんにちは。v3.1.0 を使用しており、このプラグインは先週まで問題なく動作していました。設定は何も変更していませんが、新しい投稿をフィーチャーに昇格させることができなくなりました。トラブルシューティングのために確認できることはありますか?よろしくお願いします :slight_smile:

「いいね!」 1

プラグインにアップデートがあったようです。お使いのサイトで/admin/pluginsにアクセスして、アップデートされたバージョンがあるか確認できます。バージョン列に05c0098は表示されていますか?

「いいね!」 2

こんにちは @victoria1 さん。Discourse バージョン 3.3.0.beta1-dev および Discourse-home-page バージョン 1.0.6 では、こちらで問題ありません。プラグインのバージョンは何をお使いですか?(@jericson がアドバイスしたように /admin/plugins を確認してください)

「いいね!」 3

このプラグインの最新バージョン(1.0.5以降)は、古いDiscourseバージョンとの後方互換性がない可能性があることに気づきました。フォーラムのアドレスを教えていただけますでしょうか?(フルアクセスは不要です。公開されているランディングページで十分です。)これにより、詳しく確認することができます。

「いいね!」 2

ご確認ありがとうございます!:folded_hands:

「いいね!」 1

@victoria1、プラグインの新しいバージョン(v1.0.7)をデプロイしました。これで問題が解決されることを願っています。お試しいただき、ご報告ください。

(参考までに、問題はこちらで追跡されています)

「いいね!」 3

おお、すごい!@sylさん、本当にありがとうございます!:pray:

「featured」タグが付いた投稿の2/3が表示されているようです。残りの1つが何が違うのか調べています。すべてサムネイルとして使用できる画像が少なくとも1つあり、タグを削除して再追加してみました。

「いいね!」 1

@victoria1、「discourse-home-page」プラグインは「注目の」投稿とは関係ありません。このプラグインが原因で問題が発生していると確信していますか?

そう思っていましたが、間違っていてよかったです :sweat_smile:

「featured」タグは、discourse-home-page プラグインで投稿を選択するために私が選んだタグです!

なるほど、そう思いました。このスレッドは discourse-home-page プラグインに関するもので、あなたの問題は discourse-homepage-feature-component プラグインに関連しています :slight_smile: ですので、こちら で質問することをお勧めします。

「いいね!」 1

ああ!はい。お時間をいただきありがとうございます。無駄にしてしまって申し訳ありません :pray:

「いいね!」 1