Functions/item uri

Description

item_uri returns the URL for a particular item.

Usage

<?php item_uri($action='show',$item=null); ?>

Arguments

  • $action - The action, or view, that the function would use. Default value is 'show'.
  • $item - The item object. The default value is null, which will then use the currently set item.

Examples

The following example highlights the use of the item_uri in a link to an item:

<a href="<?php echo item_uri(); ?>">Link to an item</a>