Order plugins display in item page

Hi,

I'm trying to organise my item show page to display plugins in différent order.

I want to display docsviewer then metadata then embed code and finaly the commenting plugin.

when i use the hook to show docsviewer first :

<?php add_plugin_hook('public_items_show', 'hookPublicItemsShow'); ?>

I got this error : Cannot add a hook without an associated plugin namespace.

What should i do ?

In advance, thank you.

http://cfv.univ-brest.fr/flotrisco/items/show/179

add_plugin_hook isn't the function you want. That's used by a plugin to register that it will do something when a hook is fired.

What you want to do is replace this line in your items/show.php page

<?php fire_plugin_hook('public_items_show', array('view' => $this, 'item' => $item)); ?>

with calls to the plugins' hooks you want, in the order you want. The function for that is get_specific_plugin_hook_output

For example, to get only the Commenting plugin output:

<?php echo get_specific_plugin_hook_output('Commenting', 'public_items_show', array('view' => $this, 'item' => $item)); ?>