tommy87
December 24, 2019, 4:32am
1
Hello. My forum is fairly new and I’d like to have a static listing of the categories that show’s at all times in addition to the forum showing the most recent posts below. How should I do this? Thanks.
1 Like
smrtey
December 24, 2019, 7:16pm
2
Not sure what you mean exactly but here’s a plugin that shows categories in a sidebar. If you want it above rather than on the side you might be able to rewrite it to do that but unless you only have a few categories I don’t know how you’d fit them all above.
This plugin shows categories on the page sidebar on all discovery list pages (latest, new, unread but not on the single topic page, and categories).
Screenshot:
[1]
Blocks can be ordered in the plugin settings. Speaking of which, there are these settings under Admin > Settings > Plugins:
sidebar enable enables the display of the sidebar
sidebar custom content where you can enter arbitrary HTML content to show on the sidebar
[2]
Repository: https://github.com/Toxuru/discourse-sidebar-c…
If you have few enough categories that they do fit above, you could add static links to them with something like
This is a theme component that will allow you to add custom text-based links to the header easily.
Samples:
Desktop
[Capture]
Mobile
[Capture]
(due to very limited space I don’t recommend adding more than one link on mobiles)
Settings:
Adding links is straightforward. Every link needs 6 items. You enter comma delimited values in this order:
link text, link title, URL, view, target, hide on scroll
Link text: the text for the link.
Link title: the text that shows when the link is ho…
or
This is a theme component that will allow you to add links to Discourse top navigation.
Screenshot:
Desktop
[Capture]
Mobile
[Capture]
Settings:
A navigation link needs three things
Name
Description
Path or URL
Name is the text for the link that shows up on the menu. Description shows up when you hover the name like this:
[hover2]
Path/URL is where you want the link to go.
You can add links as semicolon delimited values in theme settings following this order
name;description;URL …
5 Likes
tommy87
December 25, 2019, 2:48am
3
Awesome, thank you for these plugins! Looks like exactly what I need.
system
(system)
Closed
January 24, 2020, 3:02am
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.