PDA

View Full Version : Create new template group


KarlPurk
09-15-2007, 02:49 PM
Hi there, I'm currently attempting to create my own product, all is going well to say I've not really followed any guides (if there is one, feel free to point me to it). I've noticed that other products I've installed have managed to group their templates togehter, is there a way I can do this too? So when I go to edit templates, I will see all my templates under a single group called "My Product Templates"?

Thanks for you help.

Princeton
09-15-2007, 02:55 PM
Create a plugin in hook template_groups

Plugin PHP Code:
$only['myproduct] = 'My Product';

Make sure you save your product templates within the MASTER STYLE.

KarlPurk
09-16-2007, 01:13 AM
Thanks for your help.

Dismounted
09-16-2007, 07:38 AM
Princeton forgot an apostrophe ;).
$only['myproduct'] = 'My Product';