Froxlor
Froxlor copied to clipboard
Feature request: Templates for domains (like hosting plans)
Describe the solution you'd like I would like to be able to create templates for new domains, which apply different default settings, like the hosting plans for customers. The template should populate all field except domain settings.
For the DocumentRoot field it would be awesome, if placeholders can be used like {CUSTOMER}, {DOMAIN}, {TLD}. This would allow to prefill this field by the template with a path like /var/customers/webs/{CUSTOMER}/{TLD}/{DOMAIN} which creates /var/customers/webs/customer1/com/froxlor.com
Describe alternatives you've considered I checked https://github.com/Froxlor/Froxlor/issues/807, but it was not that what I needed
Additional context
At the moment I modify /var/www/html/froxlor/lib/formfields/admin/customer/formfield.domains_add.php after every update to my default settings.
By implementing this, this possibly opens the way for https://github.com/Froxlor/Froxlor/issues/729 (allow customers to add main domains). We're currently discussing and checking how this all can be achieved in a good and easy way