• Debian 11 has reached its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.81 is the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

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