in. Checking if document is in directory

in "/directory/"

The operator checks if document is in directory and returns bool value (true/false).

Example
^if(in "/news/"){
   We're in news section
}{
   <a href="/news/">News section</a>
}



Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 04.04.2016