Render a rack overview (e.g. of 19'' computer racks) with HTML tables.
RackPlannerPlugin
The RackPlannerPlugin handles the tag
%RACKPLANNER%
and renders a rack overview (HTML table) with devices (computer, router, switches, ...).
Syntax Rules
Devices are defined within a Foswiki table. Following columns are supported:
You can use following
%EDITTABLE%
tag (
EditTablePlugin must be installed) to simplify some things (
it must be one line):
%EDITTABLE{format="|text,10,|text,10,|text,5,1|select,1,1U,2U,3U,4U,5U,6U,7U,8U,9U,10U|text,20,|text,20,|text,10,|textarea,3x20|"
header="|*Device*|*Rack*|*Starting Unit*|*Form Factor*|*Connected to:*|*Owner*|*Color/Image*|*Notes*|"}%
This
%EDITTABLE%
tag is an example. Feel free to modify the attributes (
format
and
header
). Hint: Put a
%TABLE{initsort="3" initdirection="down"}%
tag before the
%EDITTABLE%
tag to sort the table like the rack (modify
initdirection
to
"up"
if your first unit is at the top of the rack (
dir="topdown"
)).
Notes:
- The device order in the table is not relevant (except there's a conflict) but the column order is relevant (because the table header will be ignored).
- If more than one device uses the same unit the conflict will be displayed with a icon (see
conflicticon
attribute, e.g. ). The tooltip of the icon contains the device names.
- If you have more than one device in the same unit you have to put them into a single table row and separate device names, 'connected to', owner, colors, notes with a
' / '
or a ' # '
(a whitespace before and after the separator is required).
Attributes
Usage:
%RACKPLANNER{attribute1="value" attribute2="value" ... }%
Example:
%RACKPLANNER{racks="rack1, rack2"}%
Notes:
- You can use TextFormattingRules for some attribute values: conflicticon, connectedtoicon, emptytext, name, notesicon
- Every attribute of
%RACKPLANNER%
can also be used as plugin setting. You only have to use capital letters.
Example
%RACKPLANNER{units="46" racks="rack1,rack2" devicebgcolor="darkgray" devicefgcolor="white"}%
Plugin Settings
Plugin settings are stored as preferences values. You can override the defaults for these preferences in
SitePreferences, the
WebPreferences topic of the current web, or in individual topics that use the plugin.
Changing them here will have no effect! This allows you to upgrade the plugin without having to worry about losing your settings.
- Debug plugin: (See output in
debug.txt
)
- Set RACKPLANNERPLUGIN_DEBUG = 0
- Rack units (default: 46):
- Set RACKPLANNERPLUGIN_UNITS = 46
- Device background/foreground colors:
- Set RACKPLANNERPLUGIN_DEVICEBGCOLOR = #f0f0f0
- Set RACKPLANNERPLUGIN_DEVICEFGCOLOR = #000000
- Empty unit text:
- # Set RACKPLANNERPLUGIN_EMPTYTEXT = empty
- Font and icon sizes:
- Set RACKPLANNERPLUGIN_FONTSIZE = small
- Set RACKPLANNERPLUGIN_ICONSIZE = 12px
- Fix tooltip positions (skin dependent):
- # Set RACKPLANNERPLUGIN_TOOLTIPFIXLEFT = -163
- # Set RACKPLANNERPLUGIN_TOOLTIPFIXTOP = 0
- Note: Every attribute of
%RACKPLANNER%
can also be used as plugin setting. You only have to use capital letters.
Plugin Installation Instructions
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server.
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install".
If you have any problems, or if the extension isn't available in
configure
, then you can still install manually from the command-line. See
http://foswiki.org/Support/ManuallyInstallingExtensions for more help.
Plugin Info
Related Topics: Plugins,
DeveloperDocumentationCategory,
AdminDocumentationCategory,
DefaultPreferences,
SitePreferences