thaider / Tweeki

MediaWiki skin based on Twitter's Bootstrap
http://tweeki.kollabor.at
Other
128 stars 31 forks source link

Dynamic Sidebar Content #132

Open zaksquatch opened 5 years ago

zaksquatch commented 5 years ago

Hello.

Is it possible to have content in one of the sidebars be different based on the page you are displaying?

I have some content I'd like displayed, but it wouldn't exist for every page and when it did, it would be unique to that page.

thaider commented 5 years ago

This is currently not easily achievable but it's a feature I've already been thinking about. If you're fluent in PHP I could provide you with some hints on how a possible implementation could look like. Patches are always warmly welcome ;) I will probably implement this myself but it could take a while...

zaksquatch commented 5 years ago

Unfortunately, my PHP is lackluster. I've really only made it this far by studying what code does, breaking it repeatedly until I get it to do what I want. If I could contribute I would, but I have a feeling this is a little out of my purview. I'll just have to wait I suppose.

Thanks though!

rebastion commented 2 years ago

@zaksquatch it is already possible to hide the sidebar depending on the page, so maybe that's a start to work from (in the tutorial: "Hide navigational sections on specific namespaces")