Skip to content

Commit

Permalink
Add get_collection_for_item example
Browse files Browse the repository at this point in the history
  • Loading branch information
zerocrates committed Oct 23, 2015
1 parent 199067f commit 258d4d4
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Print the title and description of the Collection the current Item
belongs to (if any)::

<?php
$collection = get_collection_for_item();
if ($collection):
?>
<h3><?php echo metadata($collection, array('Dublin Core', 'Title')); ?></h3>
<p><?php echo metadata($collection, array('Dublin Core', 'Description')); ?></p>
<?php endif; ?>

0 comments on commit 258d4d4

Please sign in to comment.