Extension talk:CollapsibleVector

Jump to navigation Jump to search

About this board

Disable the CollapsibleVector feature for anonymous users

1
Spas.Z.Spasov (talkcontribs)

I was in need to disable the CollapsibleVector feature for anonymous users. I've played with the two configuration options mentioned in the extension's page with no success in order to accomplish this task. Finally I decided to add a third option that can be controlled via LocalSettings.php:

$wgCollapsibleVectorFeatures['collapsiblenav']['anonymous'] = false;

Here is the patch, and the relevant instructions: https://gist.github.com/pa4080/0e7770dfb497f6ed543c8be8110c0b66

I think it is useful option and probably it could be added in the next release of the extension.

Reply to "Disable the CollapsibleVector feature for anonymous users"
Calvinkulit (talkcontribs)

I feel like this should be integrated into that skin.

Paladox (talkcontribs)

It was once part of Vector, but then was removed (hence why this extension was created :)).

Reply to "Why isn't this integrated into Skin:Vector?"
Spas.Z.Spasov (talkcontribs)

Recently I switched my MediaWiki from branch REL1_30 to REL1_31. Today I noticed I can't expand the collapsed items in the sidebar menu. To solve this I switched Extension:CollapsibleVector back to REL1_30, while MW and the other extensions are on REL1_31. Currently this working for me, but it is ugly solution.

Does this behaviour is a bug or some additional settings could be applied?

2A00:8A60:1:F0:DD8D:2165:F1B:F391 (talkcontribs)

Same Problem here and the suggested fix worked as well

Paladox (talkcontribs)
Naramoksu (talkcontribs)

The sidebar collapsed and gOod to see on mobile. When I edit a page, as soon as I touch edit box sidebar expanded.

What to do to make sidebar keep collapsed during edit?

Thanks in advance.

Naramoksu (talkcontribs)

FYI. It is fixed after I changed some configuration at my cellphone. Maybe configuration of phone have something to do with this extension.

Reply to "Sidebar expanded during edit"
124.197.94.219 (talkcontribs)

Hello! I installed this on the latest build (1.29) but it seems the grey dividers have disappeared. They now look super fugly. Any way to fix this? Refer: https://imgur.com/a/EeioH

Paladox (talkcontribs)
Reply to "Dividers missing"
Schreibhan (talkcontribs)

Hi,

I have installed CollapsibleVector on my Wiki (1.24). I noticed that the pages flicker when I open them in the browser for the first time: first you see a fixed Sidebar (not collapsible, no triangles), after a split second the extension kicks in and the Sidebar becomes collapsible.

Is there any way to suppress the flickering and render the Sidebbar as collapsible from the very start? It is really not very pretty and I get user complaints.

2A00:8A60:1:F0:E996:DA4F:EE7:6D9 (talkcontribs)

Problem unfortunately still persists. Using Mediawiki 1.29 and CollapsibleVector-REL1_29-eccce79 downloaded from the project page (Extension:CollapsibleVector)

Reply to "Flickering"
Kghbln (talkcontribs)

I believe that the currently planned name is too ambiguous, since it can easily be mistaken for the Vector skin as well as the obsoleted Vector extension (yeah, this one had a very bad name, too). What about calling this one CollapsibleVectorNavigagion or CollapsibleVector or ...

Cheers

81.157.75.26 (talkcontribs)

Ok I will change the name to CollapsibleVector. which would be used for things that were removed from the skin.

Kghbln (talkcontribs)

Cool. Besides, thank you for recreating the possibility to collapse the navigation for Vector. This was afaik removed due to performance considerations for heavy traffic wikis but I guess there are still wikis around which could make good use of this feature.

Paladox (talkcontribs)

@Kghbln : what about naming the extension VectorFeatures. Or SkinFeatures. This new name would suggest that it does more then collapsiblenav. And SkinFeatures name would suggest it works with all skins but not tested on all skins only tested with vector.

86.141.119.10 (talkcontribs)
Kghbln (talkcontribs)

Well, if the extension is intended to work with more than one skin the name SkinFeatures would be preferable to VectorFeatures. Indeed if the extension will in future do more than just adding collapsiblenav a rename will be ok. However I suggest to keep the old entry point for a couple of REL. So far nearly 400 wikis use this extension and this would allow making the transition smoothly. However I do not know how this fits into composer or this new extension registration mechanism.

Reply to "Extension's name"
Rob Kam (talkcontribs)

On MW 1.24 Vector skin, with the user preference ticked or unticked, the sidebar still has items collapsible. The $wgVectorFeatures set to true or false only makes the option come and go from preferences, not enable or disable the collapsible items in the sidebar.

Reply to "Preferences unticked"
Egel (talkcontribs)

I get this error on a Danish language wiki: Exception from line 559 of /includes/cache/LocalisationCache.php: LocalisationCache::readJSONFile: Invalid JSON file: /extensions/CollapsibleVector/i18n/da.json

I can't report this bug on Phabricator.

94.197.122.76 (talkcontribs)
Reply to "Invalid JSON file da.json"
Nemo bis (talkcontribs)

That "things that were removed from vector skin" is a bit too generic. :) It's probably better to only do one thing, and in any case to have a scope (and description) matching the name. If the scope is meant to be broad, better draw a line somewhere.

Additionally, the extension page should describe the drawbacks of the features in question and whether the bugs for which they were removed from core are fixed or still valid.

Reply to "Description"