Get hierarchy level of current page?
Posted: Sat Apr 25, 2015 11:54 pm
Hi folks,
Can anyone tell me how to get the hierarchy level of the current page? In other words: how many parents the current page has.
Thanks.
Edit:
I came up with this but it's a bit of a cludge. Is there a better way?
Can anyone tell me how to get the hierarchy level of the current page? In other words: how many parents the current page has.
Thanks.
Edit:
Code: Select all
{$position|substr_count:'.'}