Answer the question
In order to leave comments, you need to log in
Is it possible and how to use SITE_DIR correctly in the component path settings on 1s Bitrix?
For example, I have a complex Catalog component.
It has path settings:
"BASKET_URL" => "/site_oh/personal/cart/",
"SEF_FOLDER" => "/site_oh/catalog/",
"STORE_PATH" => "/site_oh/store/#store_id#",
"/site_oh/
I tried to use the following
instead SITE_DIR."
, everything works until I open the settings of the complex component through the visual editor and save ... After such actions, everything that opens with the help of the complex component becomes unavailable. Answer the question
In order to leave comments, you need to log in
The visual editor of Bitrix does not understand concatenation. But he will understand the so-called macro. And if you instead
"BASKET_URL" => SITE_DIR."/personal/cart/",
"SEF_FOLDER" => SITE_DIR."/catalog/",
"STORE_PATH" => SITE_DIR."/store/#store_id#",
"BASKET_URL" => "#SITE_DIR#/personal/cart/",
"SEF_FOLDER" => "#SITE_DIR#/catalog/",
"STORE_PATH" => "#SITE_DIR#/store/#store_id#",
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question