Is there a way to find the level of Page from the site structure with php?
An example structure:
website root A (level_0)
- Page B (level_1)
-- Page C (level_2)
I wanted to add this level information to the pages body class. From above example page C's body tag should have class level_2.
Following ideas are not practical.
1. Adding level class manually to page
2. Defining a new layout for each level