I am building a query for a text box in a print composer template. I have a group of historical imagery WMS layers whose names correspond to historical imagery for a certain year i.e. '1983 Historical Imagery'. I would like that text box to display which layer (and hence year) is currently switched on (assuming one is only ever turned on at a time). I would like the query to include only layers within the that particular group which are turned on. Any help would be appreciated, thanks