Name

menu — displays HTML menu

ATTRIBUTES

Attribute Pos. Req. Default Description
name Yes     name of menu file
joiner       HTML code appearing between menu entries
localize       list of fields to localize
logged_in       selection field for authorized users
menu_type     simple menu type (simple, tree, flyout)
interpolate     0 interpolate input?
reparse     1 interpolate output?
hide     0 Hide the tag return value?

DESCRIPTION

This tag reads a tab-separated menu file and display its contents according to the parameters. The template for each menu entry can be passed in the tag body. Selection fields determine which menu entries are displayed. The following columns are recognized in the menu file:

BEHAVIOR

This tag does not appear to be affected by, or affect, the rest of Interchange.

EXAMPLES

Example: Simple Menubar

<table><tr>
[menu name=Menubar localize=name joiner='<td><img src="menu_separator.png"></td>']
<td class="menubar" valign="center" align="center">
<a href="{HREF}" class="menubar">{NAME}</a>
</td>
[/menu]
</tr></table>

Example: Simple Menubar with Different Links

[menu name="links"]
<span class="links">
{HREF?}<a href="{HREF}" class="links">{NAME}</a>{/HREF?}
{URL?}<a href="{URL}" class="links">{NAME}</a>{/URL?}
</span>
[/menu]

This menu contains links to external sites (href) and internal pages (url).


Example: Flyout Menu

[menu
	name="Products"
	link-class="barlink"
	flyout-class="flyout_class"
	flyout-style="flyout_style"
	menu-type=flyout
][/menu]

NOTES

[uc-attr-list] carries out the replacements in the template.

AVAILABILITY

menu is available in Interchange versions:

4.6.0-5.7.0 (git-head)

SOURCE

Interchange 5.7.0:

Source: code/SystemTag/menu.coretag
Lines: 20


# Copyright 2002-2007 Interchange Development Group and others
# 
# 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.  See the LICENSE file for details.
# 
# $Id: menu.coretag,v 1.4 2007-03-30 23:40:49 pajamian Exp $

UserTag menu Order       name
UserTag menu hasEndTag
UserTag menu addAttr
UserTag menu noReparse
UserTag menu Version     $Revision: 1.4 $
UserTag menu Routine     <<EOR
require Vend::Menu;
sub {
return Vend::Menu::menu(@_);
}
EOR

AUTHORS

Interchange Development Group

SEE ALSO

tree(7ic), MV_MENU_DIRECTORY(7ic)

DocBook! Interchange!