Answer the question
In order to leave comments, you need to log in
How to make a page with an embedded URL in the catalog on Bitrix?
There is a directory on Bitrix with addressing like /catalog/CATEGORY/PRODUCT/ .
The catalog is implemented through a standard Bitrix component, products = infoblock elements.
I need to add a manual for each product.
It should be located at the address of the form /catalog/CATEGORY/PRODUCT/MANUAL , the structure of the address cannot be changed, because the addresses are already printed in QR on the packages.
The manual must have its own template, part of the information is taken from the product, part is its own text (html field)
How to do this?
Answer the question
In order to leave comments, you need to log in
Just in case, I will write how to do it.
1. In the parameters of the complex component, in SEF_URL_TEMPLATES, you need to add your key, which must match "element" + the desired prefix
"SEF_URL_TEMPLATES" => array(
//...........
"element" => "#SECTION_CODE_PATH#/#ELEMENT_CODE#/",
"manual" => "#SECTION_CODE_PATH#/#ELEMENT_CODE#/myprotectionproduct/manual/",
)
$arTemplateParameters['SEF_URL_TEMPLATES_manual'] = array(
'PARENT' => 'SEF_MODE',
'NAME' => GetMessage('PARAMETER_SEF_URL_TEMPLATES_MANUAL'),
"DEFAULT" => "",
"VARIABLES" => array(),
);
$MESS['PARAMETER_SEF_URL_TEMPLATES_MANUAL'] = 'Мануал';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question