XF 2.2 Widget Conditional Statement

Itworx4me

Well-known member
I want to add a widget to a particular page. What would the conditional statement look like?

Thanks,
Itworx4me
 
Ok I have figured out how to get this to work. Now just need to expand it so it includes all sub-url. This is what I have so far:

$xf.uri == '/my-page/'

How can I include everything that my-page url uses. Like:
/my-page/page-1
/my-page/page-2

without naming all sub-pages that are associated with url?

Thanks,
Itworx4me
 
Back
Top Bottom