Modify Item view

Hi!
I'm trying to modify the Item output of the default theme but my programming skills are very limited and I don't know exactly how to do what i want.

I would like to present the item's type metadata in a table, just like Civilitas presents DC metadata in his post: http://omeka.org/forums/topic/this-is-my-custom-itemsshowphp-v20
But as I've more than one Item type in my collection, I'd like to create a dinamic table. For each Item type metadata I'd like to create a row in the table with two columns: one for the title and one for the info, but don't know how to implement this. I guess it could be done with a Foreach but I don't know which values I've to send to make it work.

Oh, and if it's possible, I'd also like to hide the "Dublin Core" and "Item Type Metadata" titles.

Could you, please, help me? Thanks!

Below is a very simple version of what I think you might be looking for. Replace "my element" with whichever fields you need. This assumes you know which fields will be used.

<?php
echo '<table>';
echo '<tr><td>My Element</td><td>'.metadata('item',array(‘Item Type Metadata’, ‘My Element’)).'</td></tr>';
echo '<tr><td>My Element</td><td>'.metadata('item',array(‘Item Type Metadata’, ‘My Element’)).'</td></tr>';
echo '<tr><td>My Element</td><td>'.metadata('item',array(‘Item Type Metadata’, ‘My Element’)).'</td></tr>';
echo '</table>';
?>

If you don't know what fields will be used, you can do something like this:

<?php
echo '<table>';
foreach ( array_keys(item_type_elements($item)) as $key ){
	echo ($value=metadata($item,array('Item Type Metadata',$key))) ? '<tr><td>'.$key.'</td><td>'.$value.'</td></tr>' : null;
}
echo '</table>';
?>

You can hide element set headings with css, eg: .element-set h2{display:none;}

Hello, thank you for your answer Ebellempire, it has been really useful.

I've another question. Besides the Item Type Metadata table I'd like to create another for the Dublin Core set, the problem in this case is that I've multiple entries for the different Fields (Eg: 3 Title entries). I've tried to adapt Ebellempire's solution to the DC table , but I can't find an analog function to Item_type_elements that works with DC set.

Could you help me with this? As DC set has delimitied fields, I know I could use Ebellempire's first solution, but I guess there's a way to do it with a loop, and I'd like to know how.

Thanks again!

I think you'd need to filter or otherwise deconstruct the output of all_element_texts. I'm not sure offhand how best to do that, but maybe it's a place to start.

Thanks, I've been trying with the function you mentioned, but I haven't found how to make it work yet.

Can anyone offer some help here, please?

Thanks!