Hi guys,
Wonder if anyone can help me with this....
Imagine having a custom display of a query. That query displays staff records and attributes of name, age, gender. I know how to create a custom template to display these records with the attributes displayed as I would like and I can also define a container that has a background colour by assigning a css class to the container inside the data template so everything looks pretty.....
But what if I want to give the background a different colour based on the staff members gender? I want boys to have a blue background and girls to have pink. How can I assign a different css class inside the template based on an attribute of the record being displayed?
Thanks in advance