Name

addlinks — add standard top-of-the-page menus

Synopsis

use Wacs;
use Wacs::WacsUI;
addlinks(...); 
 

Parameters

parameterdescription
mynamename of the calling program
contextgeneral area of the current page: possible values are modelindex, models, search, tags, newimage, newvideo or admin
titleTitle of the menu (not currently used)
excludename of link to exclude (normally this apps name so it doesn't link to itself
modemenu mode: either normal for old-style simple top line menu or csshoriz to use javascript pull down menus
optionsoptional parameter list (array)
optdescmatching descriptions for the above

Summary

The addlinks function is a generalised interface to adding a top of the page menu - you specify a general category into which the page you're writing falls, and it adds an appropriate selection of the standard menus.

Availability

addlinks has been available in perl for sometime and was newly added to the php implementation in Wacs release 0.8.4. In general, unless you're trying to create a php app that blends in with the standard Wacs tools, you'll probably want to use your own menu mechanism when using PHP.