V
V
vimbatu2020-03-04 09:30:53
1C-Bitrix
vimbatu, 2020-03-04 09:30:53

How to display the contents of a subsection of the main section in the Bitrix CNC?

Good afternoon!

There is a site on Bitrix. There is a "News" component on the main page, which displays sections of the infoblock with content, in the form of a list "Section 1 - content, Section 2 - content", etc.

The infoblock is linked to the /docs folder, which contains the same "News" component in index.php, there are no other pages there, only an index.

Infoblock settings:

Information block page URL: #SITE_DIR#/docs/
Section page URL: #SITE_DIR#/docs/#SECTION_CODE#/
Detail view page URL: #SITE_DIR#/docs/#SECTION_CODE#/#ELEMENT_CODE#/

Component settings " News":

CNC directory (relative to the site root): /docs/
Section page: #SECTION_CODE#/
Detailed view page: #SECTION_CODE#/#ELEMENT_CODE#/

All this is displayed in breadcrumbs in the form "Main - Section 1 - News 1"

Tell me how, when clicking on the link "Section 1" in breadcrumbs, get a page with the content of a particular section? With the current settings, it writes "Partition not found".

And the second question - is it possible to remove the link to the /docs section from the address bar in the browser? Those. Now the link is: site.url/docs/section-1/, but I want to get site.url/section-1

Thank you all for your answers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mikhail, 2020-03-04
@RuComMarket

1. Look at all the settings, if the slashes site.url/docs/razdel-1/ and site.url/docs/razdel-1 are set correctly, these are different links
2. You can remove docs, for this you will need to play with urlrewrite.php handles and not the standard settings, while understanding and prescribing the correct rights, the first question will be solved by itself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question