Getting the *SELECTED* Values for a File Attribute

Permalink
Okay, I know how to get all of the possible *options* (setting the attribute key type, getting the the controller and calling ->getOptions), but for the life of me, I CANNOT figure out how to build an array of SELECTED/CHECKED values for a file attribute of type "select".

After I get the file object and its array of attributes, does any one know how to list the selected options for a multi/select attribute?

I LOVE YOU ALL.

 
jordanlev replied on at Permalink Reply
jordanlev
Here's a thread about how to do this with page attributes:
http://www.concrete5.org/community/forums/customizing_c5/get-page-t...

Code for file attributes should be very similar.

EDIT: Here's another link that may or may not be useful to you:
http://www.concrete5.org/community/forums/customizing_c5/how-to-wan...