Exhibit builder exhibit uri

exhibit_builder_exhibit_uri will return a URL for a specific exhibit, or section or page for a specific exhibit.

Usage

<?php exhibit_builder_exhibit_uri($exhibit, $section, $page); ?>

Arguments

  • exhibit: (required) The exhibit object you wish to link to.
  • section: (optional)
  • page: (optional)

Examples

The following example gets an exhibit with an ID of 7, then retrieves the URL for that exhibit and uses it in an anchor tag:

<?php
 
$exhibit = exhibit_builder_get_exhibit_by_id(7);
 
echo '<a href="'.exhibit_builder_exhibit_uri($exhibit).'">'.$exhibit->title.'</a>';
?>