Item view depending of its type

Hello,

I am new with omeka. I want change the item's view depending of its type. So i have created a new type and i can check in show.php if the item is this type and show what i want, but is there a way more elegant to do this?

Thanks in advance

That's generally the most straightforward way at it.