ElectricImages.co.nz

Configuring ElectricImages.Formatter

Modified: 06 Nov 2008 20:20 by Ian - Categorized as: ScrewTurn Formatter
ImageThe ElectricImages.Formatter plugin adds formatting facilities focussed around functionality and security for pages.

Edit

Configuring the Plugin

The administrator will configure the default setup for plugin, defining the following parameters.

Each entry must start on a new line in the configuration window of ScrewTurn. Note that this can look strange when not editing, due to line wrapping inherent in the display page.

Edit

Content Protection

Protect=<category>;<users>[;<message>]
This configuration tag will define a wiki category where the content will be displayed only for the defined classes of users. Pages which need their content protected will be assigned to the category defined here.

This tag is particularly useful in controlling the wiki content provided to users who have not logged in, or at an insufficient level. This may include pages of information confidential to administrators or specific users.

This configuration setting can be used more than once - one for each category setting to define

Parameters

<category>requiredCategory which is controlled. Any pages given this category will be protected only for the user classes defined.
<users>requiredList of user classes which the pages from the categories will be permitted access. Multiple classes can be specified, comma delimited.
<message>optionalDefault message when a user of insufficient rights access the pages allocated to the given category. If a message is not defined, then the page should contain appropriate information for the user.

Users accessing the page fall into one of the following groups
AdminsAny logged-in user with Admin rights
UsersAny logged-in user, but without any admin rights
GuestsAny user who has not logged in
<userid>The specific user id of a logged-in user

Example

Defines two categories which will be protected - 'Only for Admins' for Admins only, 'Workflow' for logged in users
Protect=Only for Admins;Admins;<font color=red>You may not see this</font>
   <STYLE type=text/css>#PageInfoDiv, #EditHistoryLinkDiv, A.editsectionlink { display:none;}</STYLE>
Protect=Workflow;Admins,User



Edit

Configuration Example

The following is an example of setting up the Formatter plugin.
Protect=Only for Some;Admins,JoeUser;<font color=red>You may not see this page content</font>
    <STYLE type=text/css>#ViewCodeLink, #HistoryLink, A.editsectionlink {display:none;}</STYLE>
MessagePage=Quotes
AddFor=Guests;<STYLE type=text/css>#PageInfoDiv, #EditHistoryLinkDiv, A.editsectionlink {display:none;}</STYLE>
AddFor=JoeUser;{S:NB|hello Joe - this is an AddFor}
HintCategory=Hints
NoChangesMessage=No Pages
(Note: The line wrap in the first line is for layout purposes only - it must be entered into the configuration as a single line)Ian Harding, Christchurch, New Zealand
"A learning experience is one of those things that say, 'You know that thing you just did? Don't do that.'" - Douglas Adams