E
E
ellesar20012014-01-25 11:41:42
Joomla
ellesar2001, 2014-01-25 11:41:42

CNC, Bitrix and .html: what are the rules for processing addresses?

Friends!
Googling and reading the manual did not help me, I ask for help from the community.
We are planning to move from Joomla to Bitrix. Joomla uses the sh404sef plugin, due to which the addresses of the catalog pages look like
/Tovaru-dlya-togo-to/padrazdel-takoi-to.html product.html
The task is to save the addresses during the transfer.
What are the rules for processing addresses? Who faced?
Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Oleg Maksimenko, 2014-02-01
@olegprof

#SECTION_CODE_PATH# - Path from symbolic codes of
the infoblock/component settings
section: Section page URL: #SECTION_CODE_PATH#.html
Detailed view page URL: #SECTION_CODE_PATH#/#ELEMENT_CODE#.html

Z
zum, 2014-01-25
@zum

If I'm not mistaken, then the CNC is indicated in the settings of the info block and in the settings of the component (list of news, news in detail, or the complex component "catalogue"). In the settings of the info block, you set, roughly speaking, masks, for example:
/catalog/${SECTION_CODE}/${PRODUCT_CODE} - for the product, (output of transliterated names), but with this approach, the link will be built according to the root directory, and according to the catalog in which the item is located.
If the output of the entire chain is required, then, I think, the built-in tools are indispensable here and it will be necessary to write (or modify existing ones) components from the trading module.
Those. there is a request - foo.bar.ru/catalog/tovarydlyadoma/pilesosy/tomased...
in .htaccess, (via RewriteRule), PHP gets the variable

$r="/catalog/tovarydlyadoma/pilesosy/tomasedisson.html";
, then
banal parsing and getting data from the database (using the same Bitrix API), and output to the page.
PS in the infoblock settings, you need to enable transliteration of names for elements and sections ("get a character code from the name", if I'm not mistaken), try not to use Google translator - at one fine moment it fell off (Bitrix, thanks!).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question