Hello hello.
Can anyone tell me if there is an easy-ish way to set up some (or all) of the properties of a resource as a table, like shown below (the red would be the data)? I thought the Tables module would be what I wanted, but now I don’t think so.
Hi @megtrip3 ,
If you’re comfortable editing an Omeka theme, then I would suggest doing that to create the exact layout you want. You can learn more about that here Theme Modifications - Omeka S Developer Documentation
For example, instead of echoing all of the values as is done in view/common/resource-page-block-layout/values.phtml
echo $resource->displayValues($options);
You would override this file in your theme by adding the table and inserting the values in the desired location.
You can get all of the values as an array
// returns ['dcterms:title' => 'Item Description']
$values = $resource->values()
Or you can access individual values
// returns 'Item Title'
$title = $resource->value('dcterms:title');
I haven’t learned how to mess with themes from the backend yet (but hopefully soon?).
I come from a graphic design background, so I’m learning things from the front backward instead of the other way around. I have figured out a lot, though, considering that I’m not really a coder. Most of my coding is HTML, CSS, and Javascript, but I’ve been exploring PHP, XML, and some Python in preparation for diving into the scary depths of themes and modules.
Would you be open to someone asking you how-to questions? I’ll try not to be too much of a pest…
@megtrip3 , I’m happy to help as much as I can.
1 Like