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. ما هو إصدار المكون الإضافي الذي تستخدمه؟ (يرجى التحقق من /admin/plugins كما نصح @jericson)

3 إعجابات

أدرك أن الإصدارات الأحدث من هذا المكون الإضافي (>= 1.0.5) قد لا تكون متوافقة مع الإصدارات الأقدم من Discourse. هل يمكنك تزويدي بعنوان المنتدى الخاص بك؟ (لا حاجة للوصول الكامل، الصفحة الرئيسية العامة كافية) سيسمح لي هذا بإلقاء نظرة أفضل.

إعجابَين (2)

شكرا لاهتمامك بهذا الأمر! :folded_hands:

إعجاب واحد (1)

@victoria1، لقد قمت بنشر إصدار جديد من المكون الإضافي (v1.0.7) والذي آمل أن يحل مشكلتك. يرجى تجربته وإخباري.

(للإشارة، تم تتبع المشكلة هنا)

3 إعجابات

يا إلهي، رائع! شكراً جزيلاً لك، @syl! :pray:
يبدو أن ثلثي منشوراتي التي تحمل الوسم “featured” تظهر. أحاول معرفة ما المختلف في المنشور الثالث. جميعها تحتوي على صورة واحدة على الأقل لاستخدامها كصورة مصغرة، وقد حاولت إزالة الوسم وإعادة إضافته.

إعجاب واحد (1)

@victoria1، المكون الإضافي discourse-home-page لا يتعلق بالمنشورات “المميزة”. هل أنت متأكد من أن مشكلتك ناتجة عن هذا المكون الإضافي؟

ظننت ذلك، ولكن يسعدني أن أكون مخطئًا :sweat_smile:

علامة “مميز” هي ببساطة العلامة التي اخترتها لانتخاب المشاركات لمكون discourse-home-page الإضافي!

حسنًا، هذا ما كنت أعتقده: هذا الموضوع يدور حول المكون الإضافي discourse-home-page، بينما تتعلق مشكلتك بالمكون الإضافي discourse-homepage-feature-component :slight_smile: لذلك قد ترغب في السؤال هنا.

إعجاب واحد (1)

آه! نعم. شكراً لوقتك + آسف على إضاعته :pray:

إعجاب واحد (1)