{*------------------------------------------------------------------------------- * Dataface Web Application Framework * Copyright (C) 2005-2006 Steve Hannah (shannah@sfu.ca) * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *------------------------------------------------------------------------------- *} {* *

This template displays an ajax collapsible/expandable tree menu to navigate * a specified record. This requires only that the $record variable is set * so that it knows which record to treat as the root.

*

This tree menu is enabled by default and will appear in the left column of * Dataface apps using Dataface 0.6.7 and later. * It can be disabled in the conf.ini file by setting the show_record_tree pref * to 0.

* *

e.g. In your conf.ini file:

* * * [_prefs] * show_record_tree = 0 * * * @author Steve Hannah (shannah@sfu.ca) * @created September 20, 2006 * @sponsored by Advanced Medical (advanced-medical.com) * @dependencies %DATAFACE_PATH%/js/ajax.js * %DATAFACE_PATH%/js/Dataface/Record.js * %DATAFACE_PATH%/images/treeCollapsed.gif * %DATAFACE_PATH%/images/treeExpanded.gif * %DATAFACE_PATH%/actions/ajax_nav_tree_node.php * * @example * * {load_record var="record"} * {include file="RecordNavMenu.html" record=$record} * *} {if $ENV.mode == 'browse' and $record} {assign var="table" value=$record->table()} {assign var="relationships" value=$table->getRelationshipsAsActions()} {if $relationships|@count > 0}
{translate id="templates.RecordNavMenu.HEADING_THIS_RECORD"}This Record{/translate}
{/if} {/if}