Dynamic sidebar plugin


(David García-Navas) #1

:warning: Warning 1: broken depending on the version of Discourse

:warning: Warning 2: Conflict with other plugins like discourse_tagging and polls


Continuing the discussion from [Solved]: Need a developer for several Discourse projects / customization:

Thanks to Vairix, an organization specialized on Rails who have help us with this, we can now share this customizations. We needed this for our organization, Territorio creativo.

The fourth one, it’s a plugin that adds a dynamic sidebar on the right:

Screenshots:



How to add slider in home page?
Installing Sidebar Plugin
Custom Layouts Plugin
3rd party plugins won't work (anymore)
Adding rss feed to discourse page
Can we have Customizable Sidebar Blocks?
Questions about site customisations
(Erlend Sogge Heggen) #2

Thank you very much for putting these plugins out in the open!

Is the forum publicly accessible? It’d be nice to see these customisations live. I’m hoping the sidebar only shows on the topic indexes, seeing as it’d get in the way of the right-hand “gutter” if shown inside topics.


(blaumeer) #3

It seems that the forum is public: http://personasprimero.com
And it’s a very interesting D. forum, with good writing quality, critical discussions… I like it.


(Ilya Kuchaev) #4

Twitter widget is not refreshed on the main page after the any topic view.


(David García-Navas) #5

Isn’t it? I think that the widget shows updated tweets although the user doesn’t reload the page.


(David García-Navas) #6

Thanks! :smile:
It’s on phase beta yet, but you can register if you want!


(Ilya Kuchaev) #7
  • Open the site main page.
  • Navigate to any topic
  • navigate back to main page
  • see the screen

(David García-Navas) #8

Ok! I understand the issue now, we’ll look deeper to find the problem.


(Mittineague) #9

Thanks for this :heart:
Testing on my localhost it seems to work great for adding a text sidebar to the “list” pages.

Minor “bug”, on the Admin Setting page I was getting a wonky looking en.sidebar_settings menu button.

I don’t know if you wanted it to have it’s own button or be under the “plugins” button, but I think some simple config/ YAML tweaks should fix thinks up nicely.

tested

settings.yml

# sidebar_settings:

plugins:
  sidebar_content:
    default: 'text'
    client: ''
  active:
    default: false
    client: true

client.en.yml

en:
  admin_js:
    admin:
      site_settings:
        categories:
#          sidebar_settings: 'Sidebar Settings' 

          plugins: "Plugins"

(Daniel Fernández Pescetto) #10

That make sense!! If you want, send us a PR for this change. Thanks!


(Erlend Sogge Heggen) #11

I would actually love to see this being put to use here on Meta.

dev

Put up feeds from GitHub Commits and Pull Requests

support

Have a simple HTML menu of most frequently asked questions. Maybe even a dynamic menu of most popular How-tos.

features

Taking it a little further: Dynamic list of most liked features.


The noise factor does bother me a little, but I think could be mitigated by making it a toggleable menu. Might mock it up later.


(Jason Ives) #12

Thanks for creating and publishing this plugin, I love it! Very useful for my small forum.

I’m curious, though, is there any way to modify the sidebar contents via API? If not – any idea if such a modification would be feasible? I haven’t yet played with Discourse’s API as I’m just now learning Ruby. I have some content that needs to be updated regularly and have been generating a page to embed as an iframe to accomplish this. iframes are terrible, though, and I’d really like to update the sidebar directly…

Is my only hope outside of my current solution to have it pulled by the client using Javascript?


(David García-Navas) #13

The feature that you propose would be great, and useful for us, too.
However, at this moment we can’t dedicate time to develop this. If someone wants to make a PR, it would be welcome :smile:


By the way, we expected to see in this topic the opinion from @lightyear, that made a similar plugin.


(Benjamin Kampmann) #14

Yeah. But a) I don’t know if that does work on vanilla DC at the moment (though I wouldn’t see why not), b) I recently disabled the replacing of the application template because of double overwrite problems with a third plugin and c) I haven’t had time to look at the plugin discussed here either. And I don’t want to speak up, unless I know what I am talking about :wink: .

What I can say, though, is that my sidebar plugin is widget-based, which are URL-aware and can be extended by other plugins. Meaning that for example tagger provides a widget where it shows the corresponding tags for a topic or category. The widget order can be defined in the admin settings.


#15

Hi everyone,

Thanks for this plugin. Would it be possible to use this plugin (or possibly @lightyear discourse-plugin-sidebar to run Adsense in the sidebar? I would also like to be able to add some simple static images in the sidebar.

Thanks!


#16

Quick update: @DavidGNavas tcreativo/plugin_discourse_dynamic_sidebar doesn’t seem to work on Discourse 1.2.0.beta3:

https://github.com/tcreativo/plugin_discourse_dynamic_sidebar/issues/3


(David García-Navas) #17

Thanks for reporting the issue!
We will look at the changes in the code to try to resolve it (we were still using 1.2.0.beta1 on our site)


#18

Thanks very much David for taking a look at this! Much appreciated.


(Scott Trager) #19

Has anyone checked to see if it works with Beta4? Can’t wait until this one is resolved :smile:


(Serge Vodwood) #20

I have beta4, checked. Didn’t work for me - crashed the markup and made it impossible to enter the admin interface.