A
A
Anumik2016-08-26 12:01:41
1C-Bitrix
Anumik, 2016-08-26 12:01:41

How to implement the functionality of dividing by cities on the Bitrix website as on the Euroset website?

Good day I’m
very interested in how you can make a division by city like on the Euroset
website That is, that there would be a subdirectory for each city and at the same time the CNC and all menus would work correctly, and the site itself would be scalable so that you wouldn’t have to manually redo everything for each city ?
The question is urgent, it is necessary to implement the same system on your project, but it seems to me that creating subdirectories and dragging the entire structure there, and then manually filtering and modifying is not the best option, can someone tell me how to do it right?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
Nikita, 2016-08-26
@Anumik

Implemented as follows, cities "supposedly on subdomains", in fact, there is no
spb.site.ru, msk.site.ru
spb and msk through nginx is configured as a url parameter $_REQUEST['city'], and of course there is an infblock with city ​​codes (for example, my phones are full there). Also, such a thing can be configured through .htaccess
Example cs-files.ru

O
Oleg Mifle, 2016-08-26
@OlegMifle

You can create an infoblock with cities, assign symbolic codes ("sankt-peterburg", etc.). The rest is configured via .htaccess or urlrewrite.php.

S
Sergey, 2016-08-26
@Logic87

Да, тут инфоблок самый лучший вариант.
Создаете разделы - это города. Элементы в разделах - это страницы этих городов.
Потом даже на уровне php в шаблонах делаете то что вам нужно.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question