ElectricImages.co.nz

ElectricImages Formatter

Modified: 10 Jun 2009 15:24 by Ian - Categorized as: ScrewTurn Formatter
ImageThe ElectricImages.Formatter plugin adds formatting facilities focused around functionality and security for pages. This is particularly useful in the Corporate intranet environment, especially when coupled with the AD Authentication plugin.



Edit

What the plugin can do

  Download ElectricImages.Formatter plugin v1.53 for ScrewTurn  

Edit

User, Group, and Guest Page Security

  • Security can be defined for individual users (by name), or via the standard groups named Guests, Users and Admins, by using {OnlyFor ...} and {ElseFor}

  • Categories can be marked as secure, and content will be displayed only to those users with the right to view it.

  • Additional content can be added to pages by user type, to control all content (by adding Javascript and/or DHTML).

Guestsare people who view the Wiki without logging in
Usersare people who have logged in, but are not administrators
Adminsare people who have logged in and have administration rights
Named Usersare specific log-in user names, whether admininstrators or not.

The full lockdown of the pages requires changes to the Screwturn Wiki engine. These changes will ensure that those who do not have rights to see the content are prevented from using backdoor methods to view the raw wiki markup.

These changes must be re-applied to any subsequent update of the wiki engine code.

Edit

Content Layout with Tabs

  • Sections of the page can be displayed using tabs and accessed from a tab bar by using {Tabs:...} and {AddTab:...}. Each tab section is displayed as the user clicks the named tabs on the tab bar.
    • Tab bars can be positioned directly on other tab sections. This provides tabs within tabs.

Edit

Page Formatting

  • Standard tags for current date and current time include {ServerDate} (which gives 19 May 2013 ) & {ServerTime} (gives 21:12). These are rendered using the default date/time format defined for the site by the administrator, using the current time at the server. Also available is {UserDate} (which gives 20 May 2013 ) & {UserTime} (gives 14:12). These are rendered with the current user's date/time formating.

  • Citing web resources can be easily provided with the <ref>cite web|url=|title=<⁄ref> tags that can then be referenced at the bottom of the page with <references ⁄> like this[1] (See below for the results)

  • Random Messages can be added to pages, or footers, by using the {RandomMessage} tag - the tag can also refer to a specific quotes page, or will default to a page defined by the administrator.

  • Pages can be embedded inside another providing a 'hinting' system for users. Using the {Hint} tag and supplying a category, will cause a random page for that category to be inserted into the current page.

Edit

Code Highlighting

  • Auto-highlights code for a range of common languages. Wrapping the code with {Code} and {/Code} tags, and specifying the language type, will highlight the code appropriately. Languages include c, c++, c#, vb, HTML, Javascript and T-SQL.

Edit

Site Change History

  • Page history can be provided, showing all new or changed pages for the recent number of days, or a maximum number of pages. Provided using the {RecentChanges} and {NewPages} tags.

Edit

Browser Content

  • Conditional page content based upon browser by using {OnlyBrowser ...} and {ElseBrowser}, allows the administrators to add extra page content or messages, when the browser does or does not contain the given string.
    • {OnlyBrowser ...} can now be embedded inside other OnlyBrowser/ElseBrowser tags, to provide enhanced browser control.

  • The {Browser} tag will display the browser string - present to help with browser diagnosis.

References



Edit

Change History

v1.5312jun08Additional languages for source code rendering and highlighting.
v1.5210jun08Fix for embedded tabs tags. Added source code rendering and highlighting.
v1.518jun08Fix for embedded browser tags.
v1.51jun08Added ability to embed tabs within tabs, and full lockdown of pages (requires minor changes to ScrewTurn engine to fully effect)
v1.4430may08Corrected caching which caused protected content to be incorrectly displayed to users
v1.438may08Added tabbing tags and controls
v1.417apr08Extend time control, fix page access for Random and Hints - publish
v1.329mar08Added hints/page embedding
v1.212mar08New tools for browser detection, rework and extend page protection
v1.118feb08Page content control
v1.022jan08Date/Time control, random message, citations
Ian Harding, Christchurch, New Zealand
"Everyone thinks of changing the world, but noone thinks of changing himself." - Leo Tolstoy