It's been a while since I've been in. Hope everybody's doing ok
I need to find out how many levels deep a certain page is. How can you do this in a snippet?
Let's say the sites setup is something like:
Home
Products
|_category1
___ |_product1
___|_product2
|_category2
___|_product3
___|_product4
|_category3
___|_product5
.....
How can I use a single snippet that will return 1 when run from category1.html and 2 from product1.html ?
Looks easy enough, but I have been struggling with this for over an hour....
Edited by vampke, 30 November 2011 - 09:07 PM.











