We would like to add the Date field on Browse Preview block results. Is there am equivalent to this bit of code for the date?
$resource->value($bodyTerm) : $resource->displayDescription();
I did this in our item browse page using this bit of code
$item->value($bodyTerm) : $item->value(‘dcterms:date’);
Is there an equivalent for $resource? since Browse Preview is using a $resource loop?
If you’re looking to get the contents of the Date property, ->value('dcterms:date')
should work just as well on the $resource
in browse preview as it does on the $item
in the browse page.
Gotcha. I wasn’t sure if $item and $resource used the same array structure. I’ll give it a shot. Thanks!
system
Closed
December 12, 2020, 5:52pm
4
This topic was automatically closed 250 days after the last reply. New replies are no longer allowed.