Jump to content

Topic on Extension talk:MsCatSelect/Flow

Number of subcategories limited to 10?

8
Summary by Sophivorus

Fixed in MsCatSelect 7.2+

Vikkvashapro (talkcontribs)

Hi, thanks for great extension. In my case i have hierarchical trees of categories, some categories contains more than 10 subcategories, but when editing page i can't see more than 10. What can i do with that issue? Thanks in advance!

91.233.68.5 (talkcontribs)

Hello, i guess i found the solution.

Edit the js/mscatselect.js and add this at the line 237 just after ( cmtitle: 'Category:' + maincat,)

cmlimit: '200',

200 is what i use, but the maximum is 500

Here please find the docu of API http://metin2wiki.eu/api.php

Vikkvashapro (talkcontribs)

Thanks!

SmartK (talkcontribs)

This was hard-coded to 500 a while ago but strangely it still does not show 500 but about 300 categories. Anyways I just entered '100000' and now all our 3000 categories are shown. Perfect!!!

Maybe a suggestion for the next version: Default to 500 but there should be a variable in LocalSettings.pgp so we can override this easily without editing the mscatselect.js file.

SmartK (talkcontribs)

Great, thank you for implementing this.

SmartK (talkcontribs)

LocalSettings.php: $wgGroupPermissions['*']['apihighlimits'] = true;

Johnywhy (talkcontribs)

hi, what's the purpose of wgGroupPermissions in this context ?

thx

Sophivorus (talkcontribs)

When MsCatSelect gets the list of categories, it's actually the user who is requesting the list via a background AJAX call to the API. So the max number of categories returned will depend on the limits set to the API for user requests. Thus, the purpose of setting $wgGroupPermissions['*']['apihighlimits'] = true; is to allow users to request as many categories as possible through the API.