saish seeks to configure different custom homepages for logged-in and non-logged-in users, preferably without using JavaScript. merefield confirms that a Discourse component is written in JavaScript and suggests checking the custom homepage support for developers. saish tries the method from the GitHub repository but faces issues. merefield advises seeking help in Development or hiring a developer. awesomerobot confirms the method is correct and asks for more details. saish confirms following the steps but still sees the default homepage. awesomerobot asks about console errors. saish reports no errors. merefield suggests changing a setting in preferences. saish resolves the issue by setting the Default Home Page to default and expresses gratitude.
I would like to configure different custom homepages for logged-in and non-logged-in users. While I am aware that this can be implemented using JavaScript, I am interested in knowing whether it can also be achieved through a Discourse component or plugin.
I have come across the component User-specific Discourse home page, which allows creating a new route and adding a template, but I would prefer not to use that approach.
If there are any alternative suggestions or recommended best practices, I would greatly appreciate your guidance.
תודה על תגובתך. ניסיתי את הגישה המוזכרת במאגר ה-GitHub על ידי הוספת \"custom-homepage\": true לקובץ about.json של הערכה שלי, אך זה לא נראה שעובד. האם תוכל לאשר אם זו השיטה הנכונה?
כן, עקבתי אחר השלבים שניתנו בשרשור. באופן ספציפי, הוספתי תחילה \"custom-homepage\": \"true\" ב-modifiers, ואז יצרתי רכיב ב-javascripts/discourse/connectors/custom-homepage/home.gjs.