Hi all,
I wrote a skin based on Vector. I only changed screen.css and things concerning the logo.
Now I would like to use the Vector extension, specifically the CollapsibleLeftNav feature. I installed it, but the navigation remains uncollapsible. It does work when I switch to the Vector skin.
Though it says the extension will only work with the Vector skin, I don't see any reason why it shouldn't work with my skin, since it is only slightly different from Vector.
So how would I go about to enable this?
Here's my site with my skin as the default skin: http://verben.texttheater.net
Best, Kilian
Since it doesn't look like you changed any of the IDs or classes around, I think it's just that you didn't configure it properly yet. The Vector extension has a global config object that controls which modules are enabled and how.
See: http://www.mediawiki.org/wiki/Extension:Vector
In your case, you want to add...
$wgVectorFeatures['collapsiblenav']['global'] = true;
... which will enable it for all users.
- Trevor
On Fri, Jan 27, 2012 at 5:09 PM, Kilian drehbuehne@texttheater.net wrote:
Hi all,
I wrote a skin based on Vector. I only changed screen.css and things concerning the logo.
Now I would like to use the Vector extension, specifically the CollapsibleLeftNav feature. I installed it, but the navigation remains uncollapsible. It does work when I switch to the Vector skin.
Though it says the extension will only work with the Vector skin, I don't see any reason why it shouldn't work with my skin, since it is only slightly different from Vector.
So how would I go about to enable this?
Here's my site with my skin as the default skin: http://verben.texttheater.net
Best, Kilian
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Hi Trevor,
On 01/30/2012 07:54 PM, Trevor Parscal wrote:
In your case, you want to add...
$wgVectorFeatures['collapsiblenav']['global'] = true;
... which will enable it for all users.
thanks. That's not it though. As I wrote, it does work when I switch to the Vector skin, whether I put that line in or not (collapsiblenav is enabled by default).
I did some more digging and found that the Vector Extension explicitly does the following check:
if ( $skin instanceof SkinVector ) {
So I tried for my class SkinGSV3 to extend SkinVector rather than SkinTemplate directly. No luck though, that somehow seems to cause Vector's CSS to override mine. No idea why - if someone has an idea I would like to hear it, but right now I don't feel like investigating it.
For now my solution is to patch the Vector Extension to also check for SkinGSV3.
Cheers, Kilian
mediawiki-l@lists.wikimedia.org