Product:
Search Type:

[Info] Is there any way to manage categories for templates?

Article ID: 2058 
Last Review: Jul,15 2008
APPLIES TO:
  • Sitebuilder 3.x for Linux/Unix
  • Parallels Plesk Sitebuilder for Linux/Unix
  • Parallels Plesk Sitebuilder for Windows
  • Sitebuilder 4.x for Windows
  • Sitebuilder 4.x for Linux/Unix

RESOLUTION

Parallels Plesk Sitebuilder for Linux/Unix:

It is not possible in Sitebuilder interface but could be done directly on the server in Sitebuilder database. Before making any modification to database please do not forget to make a dump for it.
 Template categories list is stored in 'template_category' table of Sitebuilder database (by default 'sitebuilder3'):

mysql> describe template_category;
+-------+--------------+------+-----+---------+----------------+
| Field | Type         | Null | Key | Default | Extra          |
+-------+--------------+------+-----+---------+----------------+
| id    | int(11)      |      | PRI | NULL    | auto_increment |
| name  | varchar(255) |      |     |         |                |
+-------+--------------+------+-----+---------+----------------+
2 rows in set (0.00 sec)

 So if you wish, for example, rename one of the categories you need just update appropriate record:

mysql> update template_category set name="NEW_NAME_FOR_CATEGORY" where id=<ID>;
 


Parallels Plesk Sitebuilder for Windows:

In Windows version category name should be changed directly for template itself in info.xml file. For example,

C:\Program Files\Parallels\Plesk\Sitebuilder\Repository\Design\TEMPLATE_NAME\info.xml:
.....
category="CATEGORY_NAME">
....


After that Sitebuilder application pool 'SitebuilderWebAppPool' should be restarted/recycled to apply the changes:

IIS -> Application pools -> SitebuilderWebAppPool -> right click 'Recycle'.



Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields