Discourse Sidebar Blocks


(Penar Musaraj) #21

I am not sure, but it probably shouldn’t work. You should include javascript via a plugin or a customization (maybe?).


#22

At a certain point, I may try to move the plugin into a connector. Currently the plugin overrides the entire discovery template.

@pmusaraj Is this because it needs access to many high-level variables and methods? I ran into some problems trying to create a plugin recently because I could not access some specific controller methods.


(Penar Musaraj) #23

I would prefer to have it use an outlet as well, but it seemed tricky to do properly at the time I wrote the plugin. But, please, if you find a way, By all means.


#24

Great job @pmusaraj,

Is it possible to activate it only on certain page (e.g : only on homepage, but not on other topic lists) ?


(Penar Musaraj) #25

Currently, no, it shows up on all “discovery” pages, which means all lists, basically.


#26

And is it a hard work to do it ?
Can i hire you for this job ?


(Penar Musaraj) #27

It’s not too hard to do, the Topic Previews plugin has something similar. We could adopt the same settings for the sidebar. Does what Topic Previews does fit with what you need?


#28

I already use topic preview, to show like on topic list.
And i use your plugin to show category on the right. But would love to see it on topic page too.

My official website : https://www.hexanews.com/

And the maintenance one, with your plugin : http://46.101.132.46/


(Penar Musaraj) #29

So, you want to show a sidebar on an individual topic page? What would happen to the topic timeline that’s by default on the right of the topic page?


#30

Yes,

i already hided the topic timeline on hexanews.com.


(Penar Musaraj) #31

Right, but if I include a way to show the sidebar on the topic page, I need to handle the timeline as well. Will think about this a little bit and get back to you.


#32

yes sure ! :wink:
__


(Dante) #33

hello I would like to change the contents of here, how can i do it?



(Penar Musaraj) #34

You can find that strin under Settings > Customize > Text (or something similar) andlook for the string you are trying to replace.


(Dante) #35

i’m truly grateful for your help :+1:


(Ibton) #36

I use the official version of the discourse 1.7.7, I can not use this Discourse Sidebar Blocks plugin,Request test, thank you very much!


(Penar Musaraj) #37

I don’t have the capacity to test with 1.7.7 right now, but the plugin works well on my site, which is running on the latest 1.8.0 beta (I updated the site on Apr 8).


(Norandom) #38

Here is how you can disable the sidebar for certain categories

body[class*="category-blog"] .sidebar {
    display: none;
    visibility: hidden;
}

How do add Category Sidebar?
(Penar Musaraj) #39

Yes, the above should work, although you would also need to reset the styling applied to the main column, something like this:

body[class*="category-blog"] .list-container.has-sidebar {
    float: none;
    width: 100%;
}

(Justin Pierce) #40

Seems to conflict with the Top Lists Preview plugin: [ARCHIVE] Topic List Previews

Looks fine in a different category: