Tweeki icon indicating copy to clipboard operation
Tweeki copied to clipboard

Dynamic Sidebar Content

Open zaksquatch opened this issue 6 years ago • 3 comments

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.

zaksquatch avatar Feb 24 '19 06:02 zaksquatch

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

thaider avatar Feb 24 '19 12:02 thaider

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!

zaksquatch avatar Feb 24 '19 18:02 zaksquatch

@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")

rebastion avatar Jul 26 '22 12:07 rebastion