Sidebar with categories

In your case, the plugin works fine. The conversation was about moving the plugin to the theme page. For example, here: https://forum.90sec.com/t/topic/356 This presents some difficulty.

1 Like

o I know your mean, That’s need rebuild this plugin, maybe reconstruct the layout

1 Like

this plugin show only 8 categories in sidebar? in my forum show only 8…

The number of categories is taken from the value: header dropdown category count

Try to change it in the site settings.

2 Likes

Does this sidebar also appear when looking at posts? @Stranik

No. If you go to the topic, the sidebar is hidden. This was due to the fact that I did not want to complicate the css, because the theme itself has a lot of small elements. And any shift will lead to a whole chain of changes. But you can easily do it. Just clone this plugin and change it to what you need.

And more. While in a topic, you may need to highlight the category in which we are in the topic itself, in order to somehow link the categories and topics. Otherwise, the sidebar will be independent, separate, just a navigation element without binding to something.

3 Likes

Does this plugin work in version 2.4.0.beta9?

It works for me in version 2.4.0.beta9. If you have any difficulties let me know.

1 Like

Is it possible to display the categories the same order as when using “fixed category positions”?

1 Like

Setting: “fixed category positions” does not work in this implementation. The order of categories completely repeats the order of categories in the drop-down menu (in the header of the site).

1 Like

I have a couple questions…

  1. Would it be possible to add some highlight/indicator to show which category a person is in, by highlighting (or some other visible distinction) the category one is currently viewing?
  2. Would it be possible to show sub-categories? Perhaps when a user is viewing a Category that has sub-categories, it would be great to see that Category open and showing the sub-categories beneath it.
    ↳ another point to this that would be nice is that if a Category has sub-categories, if there was a way to instantly see this… maybe kinda like the Discourse “Hide Details” feature works…

Example…


🔹 Category 1

           :small_orange_diamond: Sub-Category 1

           :small_orange_diamond: Sub-Category 2

      đŸ”š Category 2

      :small_blue_diamond: Category 3

🔹 Category 4

           :small_orange_diamond: Sub-Category 1

           :small_orange_diamond: Sub-Category 2

3 Likes

This is not yet in the plans. The fact is that I used (cloned) the code that is used in the drop-down menu in the header of the site. It is relatively simple.

cat

Your proposal will require some modification.

You can try to make the necessary changes yourself.

1 Like

image

## FAILED

Pups::ExecError: cd /var/www/discourse/plugins && git clone https://github.com/Toxuru/discourse-sidebar-categories.git failed with return #<Process::Status: pid 916 exit 128>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
.....
[https://github.com/Toxuru/discourse-sidebar-categories.git"]}](https://github.com/Toxuru/discourse-sidebar-categories.git%22%5D%7D)
cd67e1807300a5643fc837d0dcbdf0f86bbe61f0241ae9a41f3c9a56cc20c3c0
FAILED TO BOOTSTRAP please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
==================== END REBUILD LOG ====================

build failed, the plugin is incompatible

Could you help me solve this problem? Thank you very much
1 Like

Xmmm, I installed the Discourse, but couldn’t repeat the error:

Did you update the plugin a few days ago?

https://github.com/Toxuru/discourse-sidebar-categories/commit/63cf0a39527eff5931d9cb1f9e097a241dcb1ada#diff-9c6296e3248772ba6e4d7587aaf1bd96

Now I have rebuilt the main site (toxu.ru) (via the admin panel), similarly, I can’t see the error.

Discourse 2.5.0.beta4 - https://github.com/discourse/discourse version b031e3220ae5504ab265999270f109b2b8b973df

2 Likes

Thank you for your help. I found the cause of the failure
:grin:

1 Like

@Stranik how much would a custom gig like I suggested here cost? Do you do custom work or would I just post to the marketplace to see what bites I could get? ¯\_(ツ)_/¯

image

2 Likes

You can write in marketplace. I can not do it.

I’m currently trying to make a component from this plugin. Because Changes appeared in the templates:

https://github.com/discourse/discourse/blob/master/app/assets/javascripts/discourse/app/templates/discovery.hbs#L17

3 Likes