• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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