Hutchy68 / pivot

A MediaWiki mobile skin which "Pivots" seamlessly to any size display.
https://pivot.wikiproject.net
BSD 2-Clause "Simplified" License
37 stars 18 forks source link

Custom sidebar #45

Open innosflew opened 7 years ago

innosflew commented 7 years ago

Setup

Issue

For the normal Vector skin I used an extension called CustomNavBlocks to enable me to add custom items to my sidebar, such as custom templates, custom navigation bars, or widgets such as my Discord chat widget. But I noticed that CustomNavBlocks doesn't works for the Pivot skin. Is there a way for me to be able to add custom items to my Pivot sidebar?

raulcpop commented 6 years ago

You got the solution? I needed it...

mbilsky commented 5 years ago

I was able to make it work on my website MattBilsky.com by editing the Pivot.skin.php file.

at the very bottom, on a line before return; in the render sidebar function, you can add an echo() which will print out below the sidebar (you can see the links at the bottom on my site). I created a variable $variable_name = ' some
<more stuff and words';

then called it using echo($variable_name);

I'm not sure if this is the right way, but after a couple hours of searching around, it is the way that works for me