Attributes
One way of customising Pink Wino is through attributes. The wiki engine has a set of name value pairs, similar to ServletRequest, and HttpSession. These attributes can be used within custom plugins, and can also be printed out, using the standard "attribute" plugin.
Naming Convension
Each attribute should have a prefix, followed by a full stop.
- If it is part of the pink wino infrastructure, the prefix is "pinkwino".
- If the attribute is used primarily by a single plugin, the use the plugin's name as the prefix.
- Otherwise, think of a suitable prefix, such as your company's name, the name of the web site etc.
Known Attributes
Here is a list of known attributes :
- pinkwino.static
If set, then the page will be rendered as if it were a static (non-wiki) page.- The section "edit" links are not shown
- Images do not link to their wiki page, (no html <a> tag is created)
- The template should also choose to skip the edit, info links etc.
- googleMap.key
The key for the google map API. Used by the googleMap plugin. If this attribute is not set, then the key must be specified every time the googleMap plugin is used. So if you have more than one map within your wiki, using this attribute is much easier.
