N
N
Nikolai2016-03-11 21:16:29
1C-Bitrix
Nikolai, 2016-03-11 21:16:29

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 :

  • get the ability to set the mask of the address of the message of the form /#TITLE_SEO#/#message#MID#without adding#FID#
  • mow out the link to the last message of the topic adding an anchor #message#MID#
either to :
  • the mask entered in the component settings was not replaced by the default one in case of violation of the invisible rules invented by the system developers

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shtinov, 2016-03-17
@delimer

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 question

Ask a Question

731 491 924 answers to any question