![]() |
How can I create template groups ?
1 Attachment(s)
Hi,
Please take a look at the attached image. As you can see, a style can contain templates & template groups. Example of templates (from the attached image) are: "send_to_friend", "shell_blank", "spacer_close", "spacer_open", "TEST", "TEST2", "TEST3" etc. Example of template groups are "Search templates", "Show groups templates", "Show thread templates", "Smilie popup templates", "Sunscribed threads templates" aso. How can I define a group of templates ? I want to put all my templates in such a group. For example, I want to put "TEST", "TEST2", "TEST3" in a group called "TESTING". Regards, Razvan |
you will need to create a plugin
HOOK LOCATION: template_groups TEXT: $only['template_prefix'] = 'TITLE OF GROUP'; FYI - your templates should all have the same prefix eg. mytemp_threadbit, MYTEMP_SHELL, etc, etc - you must add new templates to the MASTER STYLE |
Quote:
I am thinking to use a common prefix. |
I'd hardly consider a board with plugins enabled "dirty". Properly used, Plugins are very efficient and safe.
|
I tried to do this in 3.7.3 and it did not group the templates.
Okay, got it working. For future reference: The prefix should not include the underscore. |
All times are GMT. The time now is 08:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|