Answer the question
In order to leave comments, you need to log in
How to competently organize multi-site and several templates in Bitrix?
Hello!
Please tell me the logic of displaying different templates for different pages in Bitrix, taking into account multi-site.
Conditions: there is one main site and its regional subdomains. The site (according to the designer's technical task) uses different templates (one template on the main one, another on the internal one, and a third one on the contact page).
As far as I know, I need to CREATE different templates for each of the displays (settings - site templates).
In the case when there are differences in design on the regional site, then I need to create additional templates for each site, right? those. if we have 10 sites, do I need to create 30 different templates?
Answer the question
In order to leave comments, you need to log in
multisite it is more convenient to do this:
you display the bitrix and upload folders outside the folder with the site (you can leave it in one, but it is better to leave it outside)
in folders with sites you create symbolic links to the bitrix and upload folders
now you can create your own site in each folder , and in the local folder components and templates for these sites.
it remains to create a site in the admin panel and specify the template.
if there are regional subdomains, then you can play around with the server settings by sending everything to one folder, and create regional sites in the Bitrix in the admin panel, in the settings of which you can specify any number of templates under certain conditions.
by the number of templates, it may be necessary to find similarities in them, create one main template, and when displaying components, substitute different templates in them, i.e. scatter the layout among the components, so it will be much more convenient to edit something in the future.
but sometimes the conditions of TK imply the creation of 2-3 templates for one site
How to merge the header of all 1C-Bitrix templates? already answered here
different templates are used (on the main one template, on the internal another, on the contact page the third one).
In the case when there are differences in design on the regional site
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question