Add attachment meta to gallery item
-
Some of my documents are for “internal” use only. I have a boolean custom field on my attachments named internal.
I would like to add the value of the internal field as a class. This could be a string added to the %class% key. Or it could be a new key. The markup for my icons should look like this if internal is true:
<div class="document-icon internal">
Is there a way to do this without hacking the plugin? I saw the dg_query action in the readme, which seems like it would do the job. Can you provide an example of how this would work?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Add attachment meta to gallery item’ is closed to new replies.