Answer the question
In order to leave comments, you need to log in
How to configure the CNC URL of a message on the forum in Bitrix:US?
There is a forum on Bitrix with a default theme.
In the settings of the forum component, the url of a specific message is formed according to the mask: "message" => "#FID#/#TITLE_SEO#/#MID#/"
where #FID#
- ID of the forum; #TITLE_SEO#
- CNC fragment transliterated from the topic name; #MID#
- Message ID.
Problems :
1. the url mask #FID#/#TITLE_SEO#/#MID#/
is ignored by the forum component and replaced by default on any attempt to remove or replace elements from it #FID#
and #MID#
, although it’s #FID#
not fucking necessary, given that it #TITLE_SEO#
includes a unique topic identifier, and therefore the likelihood of a url match, in case of topic names , is equal to zero
and /#MID#/
why the hell is not needed, since it is possible and customary to address individual messages by adding an anchor, not a directory
2. in the forum interface (where the last message of the topic is displayed), an #FID#/#TITLE_SEO#/#MID#/
anchor is added to its address formed according to the mask, formed according to the principle #message#MID#
i.e. as a result, a construction is obtained, #FID#/#TITLE_SEO#/#MID#/#message#MID#
although it is needed for good #FID#/#TITLE_SEO#/#message#MID#
. Accordingly, the question is which files need to be opened in order to :
/#TITLE_SEO#/#message#MID#
without adding#FID#
Answer the question
In order to leave comments, you need to log in
Here I see two options:
1) Rewrite the part in the form component that is responsible for parsing the address and selecting the component to display the topic itself.
2) Do not use a complex component, but split the forum into separate components and set CNC rules for each component.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question