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.
Bedankt voor uw reactie. Ik heb de aanpak geprobeerd die in de GitHub-repository wordt vermeld door \"custom-homepage\": true toe te voegen aan het about.json-bestand van mijn thema, maar het lijkt niet te werken. Kunt u alstublieft bevestigen of dit de juiste methode is?
Ja, ik heb de stappen gevolgd die in de thread werden gegeven. Specifiek heb ik eerst \"custom-homepage\": \"true\" toegevoegd aan de modifiers, en daarna heb ik een component aangemaakt op javascripts/discourse/connectors/custom-homepage/home.gjs.