N
N
Nikolai2019-02-12 17:54:00
1C-Bitrix
Nikolai, 2019-02-12 17:54:00

Fulfill the condition for all subdirectories in Bitrix?

Good afternoon!
CSite::InDir('/raboty/') is also executed for the /raboty/ category itself. How to exclude /raboty/ and only execute for subcategories?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-02-12
@idruweb

CSite::InDir('/raboty/') && !CSite::InDir('/raboty/index.php')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question