Could you provide a code snippet that allows me to add hot topics to the left sidebar?
סיכום מבוסס בינה מלאכותית
The discussion revolves around adding ‘hot topics’ to the left sidebar in Discourse. Sena_SARIVAZ asks for a code snippet to display hot topics, and JammyDodger clarifies whether this refers to a list of individual topics or a link to the /hot view. While the latter is straightforward, the former isn’t feasible for a dynamic left sidebar. JammyDodger suggests using the top-topics component in a theme to achieve a similar effect. Sena_SARIVAZ clarifies they want to replace categories and tags with hot topic titles. JammyDodger explains that while hiding categories and tags is possible using theme components, there’s no built-in way to populate the sidebar with dynamic hot topics—manual updates would be required. Sena_SARIVAZ acknowledges the details provided.
Do you mean a list of individual topics, or a link to the /hot topic view?
The last one is easy, the first one I don’t believe is possible using the left sidebar (if you want it to be dynamic), but you can get a version of it using top-topics in the Right Sidebar Blocks theme component.
Thank you for your quick response. I would like to remove the categories and tags from the left bar. I would like to add hot/popular topic titles instead. Is this possible?
You can hide the Categories and Tags sections - the Navigation (sidebar) menu display control theme component gets you part-way by hiding them from everyone but staff users, or you could create a custom theme component that hides them from everyone including staff. But there isn’t a way to populate the left sidebar with a ‘hot topics’ section that would list the x hot topics from today/this week. You could create a custom section and manually update it with links to topics, but that is likely going to be a chore to keep on top of.
You are right, thank you for the details about other sidebar settings