• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Default Template

N

Nono

Guest
Hi,

I want to select the template that will be used when I create a site (with the API and with the admin control panel).
But I can't find where is this option.

Thanks,

Nono
 
As I know for Parallels Plesk Sitebuilder for Linux/Unix template with the first ID in database is taken in such cases. By default it is personal-018 template. Try to check Sitebuilder database and find table with templates. Check the template ID which is used by default for design while you create site through API. If it is the first ID number, set this ID for the template you need. Hope it helps.
 
Thanks for the information, unfortunately I didn't find any table with templates except the 'PlanTemplateEntity' one that specifies which templates are available in each plan. But this don't allow me to specify a default template.

I managed to specify a default template category this way :
- when you create a site you give a user id
- each user has a plan id (table AccountEntity -> PlanId)
- each plan can have a site family (table PlanEntity -> DefaultSiteFamilyId)
- each site family can have a template category (table SiteFamilyEntity -> DefaultTemplateCategory)

Now, when I create a Site, the template assigned is the first one in the alphabetical order in the template category I specified.

Do you have any suggestion ?

Thanks for the help,
Nono
 
Back
Top