A
A
Alex2016-09-15 07:40:41
1C-Bitrix
Alex, 2016-09-15 07:40:41

How to make a condition for the infoball section?

Actually the question is, on the page there is an output of two sections of the infoblock, for one of them you need to fulfill the condition (change the class of the diva in some places). How to implement this? Thank you

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
Yaroslav Alexandrov, 2016-09-15
@alexyarik

condition for entire directory-section
<?if (CSite::InDir ('/katalog/')): ?>

F
firm, 2016-09-19
@firm

Go to the component template, through which you display the contents of the infoblock and set the condition you need there and change the class of the div.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question