# Discourse Sidebar Blocks

**URL:** https://meta.discourse.org/t/discourse-sidebar-blocks/51457
**Category:** Plugin
**Tags:** deprecated
**Created:** [2016年十月12日 16:13 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457 "2016-10-12T16:13:50Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2017年一月16日 23:02 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/21 "2017-01-16T23:02:23Z")

</div>

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

---

<div class="post-metadata">

### Author: ![jgujgu](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jgujgu/32/64012_2.png) [@jgujgu](https://meta.discourse.org/u/jgujgu)
#### Post date: [2017年一月22日 03:42 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/22 "2017-01-22T03:42:42Z")

</div>

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

> <https://github.com/pmusaraj/discourse-sidebar-blocks/blob/master/assets/javascripts/discourse/templates/discovery.hbs#L38>

@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.

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2017年一月23日 00:27 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/23 "2017-01-23T00:27:32Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![kam44](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kam44](https://meta.discourse.org/u/kam44)
#### Post date: [2017年一月25日 17:28 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/24 "2017-01-25T17:28:28Z")

</div>

Great job @pmusaraj,

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

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2017年一月27日 15:03 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/25 "2017-01-27T15:03:22Z")

</div>

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

---

<div class="post-metadata">

### Author: ![kam44](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kam44](https://meta.discourse.org/u/kam44)
#### Post date: [2017年一月27日 15:15 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/26 "2017-01-27T15:15:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2017年一月27日 15:17 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/27 "2017-01-27T15:17:03Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![kam44](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kam44](https://meta.discourse.org/u/kam44)
#### Post date: [2017年一月27日 15:19 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/28 "2017-01-27T15:19:56Z")

</div>

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/](https://www.hexanews.com/)

And the maintenance one, with your plugin : [http://46.101.132.46/](http://46.101.132.46/)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2017年一月27日 15:23 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/29 "2017-01-27T15:23:56Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![kam44](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kam44](https://meta.discourse.org/u/kam44)
#### Post date: [2017年一月27日 15:29 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/30 "2017-01-27T15:29:49Z")

</div>

Yes,

i already hided the topic timeline on [hexanews.com](http://hexanews.com).

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2017年一月27日 15:31 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/31 "2017-01-27T15:31:23Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![kam44](https://avatars.discourse-cdn.com/v4/letter/k/e47c2d/32.png) [@kam44](https://meta.discourse.org/u/kam44)
#### Post date: [2017年一月27日 15:33 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/32 "2017-01-27T15:33:47Z")

</div>

yes sure ! 😉  
\_\_

---

<div class="post-metadata">

### Author: ![DanteZii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dantezii/32/81726_2.png) [@DanteZii](https://meta.discourse.org/u/DanteZii)
#### Post date: [2017年三月24日 02:59 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/33 "2017-03-24T02:59:36Z")

</div>

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

* * *

 ![](https://global.discourse-cdn.com/meta/original/3X/a/f/af756dca82cd841a35dbb89c47f099ec670a2b24.png)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2017年三月24日 03:23 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/34 "2017-03-24T03:23:05Z")

</div>

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

---

<div class="post-metadata">

### Author: ![DanteZii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dantezii/32/81726_2.png) [@DanteZii](https://meta.discourse.org/u/DanteZii)
#### Post date: [2017年三月24日 03:37 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/35 "2017-03-24T03:37:18Z")

</div>

i’m truly grateful for your help 👍

---

<div class="post-metadata">

### Author: ![ibton](https://avatars.discourse-cdn.com/v4/letter/i/b782af/32.png) [@ibton](https://meta.discourse.org/u/ibton)
#### Post date: [2017年四月10日 03:15 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/36 "2017-04-10T03:15:00Z")

</div>

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!

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2017年四月10日 13:23 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/37 "2017-04-10T13:23:34Z")

</div>

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

---

<div class="post-metadata">

### Author: ![norandom](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/norandom/32/166825_2.png) [@norandom](https://meta.discourse.org/u/norandom)
#### Post date: [2017年五月6日 10:21 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/38 "2017-05-06T10:21:49Z")

</div>

Here is how you can disable the sidebar for certain categories

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

```

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [2017年五月8日 13:02 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/39 "2017-05-08T13:02:00Z")

</div>

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%;
}

```

---

<div class="post-metadata">

### Author: ![JP\_](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jp_/32/115401_2.png) [@JP\_](https://meta.discourse.org/u/JP_)
#### Post date: [2017年六月7日 18:34 UTC](https://meta.discourse.org/t/discourse-sidebar-blocks/51457/40 "2017-06-07T18:34:27Z")

</div>

Seems to conflict with the Top Lists Preview plugin: [https://meta.discourse.org/t/topic-list-previews/41630](https://meta.discourse.org/t/topic-list-previews/41630)

 ![](https://global.discourse-cdn.com/meta/original/3X/7/7/777b516cb698990019e73a69c2db629ee3682bb8.png)

Looks fine in a different category:

 ![](https://global.discourse-cdn.com/meta/original/3X/c/b/cbb314c5e79b3439a7f77a8acec84d1588da82e5.png)

[上一頁](https://meta.discourse.org/t/discourse-sidebar-blocks/51457.md?page=1)

[下一頁](https://meta.discourse.org/t/discourse-sidebar-blocks/51457.md?page=3)
