I'm trying to set the value of 'department' in a collection called 'Jobs', I want to use this variable inside a perch_layout to set as class on the body tag:
The above outputs the department name as expected but displays on the page, I wanted to set/use it as a variable inside the below code:
Then 'page' is used to add the department name as a class on the body tag.
The field used when adding a job to the Jobs collection template is:
Please does anyone have any ideas on how to do this?