Log in

View Full Version : Add one template to each templates group by a query ?


floleb7
04-09-2002, 11:52 AM
what is the query to run for adding one template to each templates group that i use ?

Admin
04-09-2002, 12:51 PM
There is no such query, but there is at least 1 hack that lets you do that.

floleb7
04-09-2002, 01:19 PM
i try this :
INSERT INTO template (templateid, templatesetid, title, template) VALUES ('', '-1', 'template_name', 'text');

it works but maybe it's not the better way

Admin
04-09-2002, 01:41 PM
That's an option but I don't recommed doing that since all default templates (templatesetid = -1) are deleted when you upgrade.

floleb7
04-09-2002, 01:54 PM
ok
it's not a problem for me i don't upgrade and i wait huge version for doing this.
French template and hacks are not easy to upgrade :D