Edit the item display for your theme in themes/[your theme]/items/show.php . Add the following code where you wish the TEI document to be serialized (e. g., under the titles and above show_item_metadata()):
<?php if (function_exists('tei_display_installed')){ echo
render_tei_files($item->id, $_GET['section']); }Â ?>
But that wasn't the complete story for what I had to do to get it
to work.
First, depending on the theme you are using, you might need to do
some hunting to the file to edit. Usually, it will be
/themes/{yourtheme}/items/show.php
However, some themes, like the default theme, do not have that
file. It is basically inheriting from
/application/views/scripts/items/show.php
So, to override things in Omeka, copy the /items/show.php
directory and file from /application/views/scripts over into your
theme, if it is not there already.
Then, usually you would edit /items/show.php to add in that code.
At least for me, this is where the second major bug happened --
render_tei_files isn't defined.
To get it to work for me, here's what I used instead.
<?php if (function_exists('tei_display_installed')){ echo
render_tei_file($item->Files[0]->id, $_GET['section']); }
?>
--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.
To view this discussion on the web visit https://groups.google.com/d/msg/omeka-dev/-/BtIP4g2ag_cJ.
--
You received this message because you are subscribed to the Google Groups "Omeka Dev" group.