Hello
How can I display a metadata ?
For example a location (this is a field).
I try metadata (‘item type metadata’, ‘location’)… but of course that doesn’t work.
Many thanks
Olivier
Hello
How can I display a metadata ?
For example a location (this is a field).
I try metadata (‘item type metadata’, ‘location’)… but of course that doesn’t work.
Many thanks
Olivier
See the metadata() function documentation: metadata — Get metadata for a record. — Omeka Classic 3.1 documentation
The general call of the function looks like this:
metadata ($record, $metadata, $options = array() )
Assuming no options, you can get the ‘location’ item type metadata by calling:
$locationHtml = metadata($item, array('Item Type Metadata', 'location'));
Many thanks !
Olivier
This topic was automatically closed 360 days after the last reply. New replies are no longer allowed.