Answer the question
In order to leave comments, you need to log in
How to display description in bitrix without meta tag?
The standard construction <? $APPLICATION->ShowMeta("description") ?>
outputs as follows, <meta name="description" content="Здесь текст"/>
but you just need to get it Здесь текст
without the META tag.
Answer the question
In order to leave comments, you need to log in
<meta property="og:description" content="<?$APPLICATION->ShowProperty('description');?>" />
UPDATE 07/19/2018:
Judging by the direct statement of the question, to get the property value, you need to use CMain::GetProperty() :
However, this mechanism works on the technology of deferred functions , which means that depending on the place of the call, a different result may be returned.
The author assumes the use of CMain::ShowProperty() , via
However, this possibility exists only in the site template and does not imply further manipulations with the result. For example, in order to add the user's city to the description, it is absolutely impossible to use ShowProperty to manipulate data; instead, you should subscribe to the onEpilog event of the main module and change the value of the string using GetProperty + SetProperty
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question