I’m using the Pages module to specify both a Pages URI and a Template for each Entry. When the named Pages URI is entered in the browser, this triggers the specified Template to load with that Entry’s data.
But is there a way to test what Template Group the Entry belongs to? Or more precisely, what Template Group the Template that the Entry calls via the Pages module belongs to?
Something like {if template_group == "about"}xxxx{/if}
Pre-Pages module I would do this by using {segment_1} as it matches the template group…but that’s not true when you’ve created your own Pages URI. (My Template Groups match my global nav, so I’m using this to highlight the selected nav element).
Cheers!
Will