Answer the question
In order to leave comments, you need to log in
How to check for content before showViewContent()?
It is necessary to display the content in h1 on the page using a deferred function (showViewContent()), but with a preliminary check: if it is empty, then display the page title (showTitle()). Is it possible to implement this using Bitrix tools, or is it easier to do it in js after the page is loaded?
Answer the question
In order to leave comments, you need to log in
I would do this with SetPageProperty/ShowProperty on the site's new H1 property. In infoblocks, I would create a similar field H1. Here I already answered and in fact you will have the same essence:
How to display the section property in Bitrix?
For static pages, the site property will have to be manually added.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question