Y
Y
Yuri Avanesov2020-02-10 09:37:07
1C-Bitrix
Yuri Avanesov, 2020-02-10 09:37:07

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

2 answer(s)
M
Mikhail, 2020-02-10
@RuComMarket

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

Y
Yaroslav Alexandrov, 2020-02-10
@alexyarik

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

Depending on what are the differences, you can change the output of component templates, if the differences in the block design

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question