Answer the question
In order to leave comments, you need to log in
Why is a new information block not being created?
Good evening!
I want to create a new information block. I follow this instruction: https://aspro.ru/docs/course/course1/lesson397/?LE...
I opened access to it, set the activity, updated the cache. Item loaded. But at the address it gives 404.
url is set by analogy with existing info blocks. Symbolic code: blockname, respectively
Information block page URL:
#SITE_DIR#/blockname/
Section page URL:
#SITE_DIR#/blockname/#SECTION_CODE_PATH#
Detail view page URL:
#SITE_DIR#/blockname/#ID#
What could be the problem?
Answer the question
In order to leave comments, you need to log in
Have you created a page? Has the component been configured on the page?
The user opened the page /blockname/1
How to determine in your case, this is a section or a detailed element? That the section code can be 1, that the element code. Bitrix will also not determine and will not open what you need. It is necessary to make addresses such that it is immediately clear what should open.
If you have to specify a section for elements, then make the following CNC settings:
Information block page URL:
#SITE_DIR#/blockname/
Section page URL:
#SITE_DIR#/blockname/#SECTION_CODE_PATH#/
Detailed view page URL:
#SITE_DIR#/blockname/ #SECTION_CODE_PATH#/#ID#/
If not all elements have a section, then this:
Information block page URL:
#SITE_DIR#/blockname/
Section page URL:
#SITE_DIR#/blockname/#SECTION_CODE_PATH#/
Detailed view page URL:
#SITE_DIR#/blockname/#ID#.html
Well, start in more detail about setting up the CNC in more detail:
https://r-morozov.ru/bitrix/kak-sozdat-stranicu-no...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question