Page 1 of 1

batch create Tags?

Posted: 26 Aug 2019, 04:28
by amphetamine
as title said, want to find a way to create hundreds of tags

Re: batch create Tags?

Posted: 26 Aug 2019, 07:27
by cas
You could do an upload using mysql tool :mrgreen:

Re: batch create Tags?

Posted: 26 Aug 2019, 09:32
by amphetamine
Would you please tell me how to handle that?

Re: batch create Tags?

Posted: 26 Aug 2019, 10:15
by cas
easiest way is to create an SQL file ( for example called tags.sql ).
In that text file, you create a line for every Tag you need like this:
INSERT INTO `mantis_tag_table` ( `user_id`, `name`, `description`, `date_created`, `date_updated`) VALUES ( 1, 'Name', 'Description', now(), now());

The bold parts you can fill up. Only the "Name" is mandatory.

Once done you launch for example something like phpmyadmin on your server, navigate to the mantis database and run the sql script you just made.
(Google can help a lot here).

That's all :D

Re: batch create Tags?

Posted: 27 Aug 2019, 14:44
by amphetamine
tag.png
tag.png (3.2 KiB) Viewed 3566 times
How to increase words limits for that text field?

Re: batch create Tags?

Posted: 27 Aug 2019, 14:54
by cas
max size is 100 according databas.
You can change line 211 in manage_tags_page.php to read like:

Code: Select all

<input type="text" id="tag-name" name="name" class="input-sm" size="100" maxlength="100" required />