Answered: Where is configurations of max length of the categories?

Post date: 2021-04-13 23:51:19
Views: 99

The length of category names is limited by the size of the title field in the respective database table:

MariaDB dbname]> describe qa_categories;
+------------+----------------------+------+-----+---------+----------------+
| Field      | Type                 | Null | Key | Default | Extra          |
+------------+----------------------+------+-----+---------+----------------+
| categoryid | int(10) unsigned     | NO   | PRI | NULL    | auto_increment |
| parentid   | int(10) unsigned     | YES  | MUL | NULL    |                |
| title      | varchar(80)          | NO   |     | NULL    |                |
| tags       | varchar(200)         | NO   |     | NULL    |                |
| content    | varchar(800)         | NO   |     |         |                |
| qcount     | int(10) unsigned     | NO   |     | 0       |                |
| position   | smallint(5) unsigned | NO   |     | NULL    |                |
| backpath   | varchar(804)         | NO   | MUL |         |                |
+------------+----------------------+------+-----+---------+----------------+

The size limit is set when the table is created and the value for the limit is defined in qa-include/db/maxima.php:

$maximaDefaults = array(
  ...
  'QA_DB_MAX_CAT_PAGE_TITLE_LENGTH' => 80,
  ...
};

Please click Here to read the full story.
 
Other Top and Latest Questions:
How Trump’s latest tariff moves hand India an edge over rival Asian exporters
Liesman: Why Greenspan could bet on productivity — and Warsh needs to hike
Spain’s Pablo Hernández de Cos set to lead European Central Bank
What is ‘texture-maxxing’? The food trend putting crunch on the menu
Movie: When Evening Falls on Bucharest, or Metabolism
SpaceX shares jump on alternative trading platform after Musk says he will expand on Trump Account share donations
Two Italians killed in Kuwait drone attack; Trump says Iran war ends ‘whenever I want it’
The great aluminum squeeze: London supply crunch deepens as warehouse stocks slide
Nvidia chip buyers told to rule out Chinese renters to purchase GPUs, sources say
Fast cars, big money: Why sportswear races into Formula 1 as sponsorship spending soars 75%