Loading...
 
Skip to main content

Change how categorize.php works for sites with a lot of categories

Status
Open
Subject
Change how categorize.php works for sites with a lot of categories
Version
21.x
Category
  • Usability
  • Feature request
Feature
Category
Resolution status
New
Submitted by
Jonny Bradley
Lastmod by
Jonny Bradley
Rating
(0)
Description

I have a site where saving (or cancelling editing) a wiki page wasn't working, you just get the same tiki-editpage.php back... After a lot of searching i found it was due to a php.ini setting called max_input_vars which defaults to 1000. And this site now has 1016 categories! 😬

My proposal is to make a better category picker which can use a hidden input to contain a comma separated list of the category id's selected as on single input, instead of having 1016 individual checkboxes on the form.

So let's find a nice, hierarchical picker to do this, maybe a Vue JS one? Or maybe this should be an extension of object_selector_multi

Solution
Cheap fix will be to add a threshold for maximum number of categories to show as checkboxes (def 800?) and when over that number use a select[multiple]
Importance
2
Easy to solve?
4
Priority
8
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
7311
Created
Thursday 05 March, 2020 13:32:44 UTC
by Jonny Bradley
LastModif
Wednesday 14 April, 2021 15:39:22 UTC


Show PHP error messages