PDA

View Full Version : Creating template category


Kaitlyn2004
10-27-2007, 09:38 PM
Okay so before I wanted to link a template to a product which I later found out had to be done with debug mode enabled and only with the master style.

Now, I'd like to group themes templates under those "Template groups" (like "Forum Display Templates"). How do I do this? Through the admin area ideally... (or how do I do it by just editing an XML file?)

ragtek
10-27-2007, 09:56 PM
hi
create a phrase for the name and then create a plugin at hook template_group with:
$only['ragtek'] = $vbphrase['group_ragtek'];
and all your templates must beginn with ragtek_name...
so instead of ragtek use what you want but the element in the only array must be the same as the first part of your templatename

Kaitlyn2004
10-27-2007, 10:31 PM
thank you very much!