Linking to Exhibit from Item Page using custom.php in a theme

thanks Patrick !
I’m not sure where to put it thought (I’m really not a php developper) ?

In the function or in the show.php before calling link_etc. like, :

<?php $item = get_record('item'); echo link_to_related_exhibits(); ?>

that doesn’t work. It’s strange because this variable is used in many other functions.

If you see where I’m wrong, do not hesitate to tel me … (I’m going to try the same on a real serveur, in case the pb is in the MAMP configuration).