Ouput a list from a custom select attribute

Permalink
HI all,
I'm using concrete 5.7 and I have a custom attribute set up for a list of files, which is a select type attribute. So say, 'origin' with various values 'England, Ireland, Scotland, Wales etc', each file has one value I'd like to output a list of all the value of the attribute so I can do some filtering with an isotope style dropdown. Is it possible to output a list like this?

 
hutman replied on at Permalink Reply
hutman
You should be able to do something like this

$attrKey = FileAttributeKey::getByHandle('origin');
$cont = $attrKey->getController();
$attrOptions = $cont->getOptions();
foreach($attrOptions as $option){
   //do things with this option
}