Categories
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
CSite::InDir('/raboty/') && !CSite::InDir('/raboty/index.php')
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question