batch create Tags?

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
amphetamine
Posts: 113
Joined: 05 Jun 2019, 00:17

batch create Tags?

Post by amphetamine »

as title said, want to find a way to create hundreds of tags
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: batch create Tags?

Post by cas »

You could do an upload using mysql tool :mrgreen:
amphetamine
Posts: 113
Joined: 05 Jun 2019, 00:17

Re: batch create Tags?

Post by amphetamine »

Would you please tell me how to handle that?
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: batch create Tags?

Post 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
amphetamine
Posts: 113
Joined: 05 Jun 2019, 00:17

Re: batch create Tags?

Post by amphetamine »

tag.png
tag.png (3.2 KiB) Viewed 3558 times
How to increase words limits for that text field?
cas
Posts: 1586
Joined: 11 Mar 2006, 16:08
Contact:

Re: batch create Tags?

Post 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 />
Post Reply