Overview
Wiwimod is a Xoops 2 module, offering « wiki » style functionnality based on wysiwyg HTML editors.
- Full
access privileges, extending Wiwi usage beyond wikis : Wiwi is an easy
way to build and maintain a web site with different levels of access to
the content.
- Page hierarchy support,
- Page history : retrieve and compare the older page revisions with the last one
- Xoops comments support
- XoopsCodes support
- page break feature, with automatic navigation between pages
- dynamic content support : include any Xoops block within your pages !
Wiwi adds some useful blocks into Xoops repository, as follows :
- TOC : displays links to a subset of existing pages (for example, « chapters »),
- « Recent » (links to the 5 last modified pages),
- Context : side block whom content depends on which Wiwi page is currently displayed
- ShowPage : displays a Wiwi page in a block
Wiwi is distributed
under the GPL licence, meaning it's free to use as long as it isn't integrated
in a commercial product.
Creating and organizing
pages
Page names :
CamelCase Wiwi pages are named documents. That
name is a unique identifyer to store and retrieve pages from the document store
(the database).
To be valid, a page name must respect the « CamelCase »
syntax, i.e : it must be composed out of two or more "words" starting with an
uppercase letter such as : « MyNewPage », or « ThisIsAnExample ».
Spaces,
punctuation and other special characters are forbidden for a page name to be
valid. Consecutive uppercase letters are also forbidden (such as : « ILoveNY »)
Creating new pages :
The base idea is that you create a page when you try to reach
a page that doesn't exist yet. When you do this, you obtain a blank page in
« edit » mode. Then you type the content and submit the new page ... you're
done.
Step 1 : create a link to your future new page (edit your "index" or "home" page for example)
You have three ways to do that : you can
- just
type the CamelCase name of your future new page : it will be
automatically converted into a link when you save the current page.
or
- type
a title for your link, click the "insert hyperlink" button of your
editor and, in the destination URL field, type : ?page=MyNewPage
or
- type [[MyNewPage A title for that link]]
Step 2 : save the "index" page, and click on the link you've just added. Here you are, now just type your content and save it.
Note : when
a link to a new page is parsed, Wiwi appends a « ? » sign to make it easy
understand the corresponding content doesn't exist yet and has to be created.
Organizing
pages
One of the most irritating tasks in wikis is to maintain information about
the page hierarchy (if applicable) , and repeat it on each page you write, so
that readers don't get lost and quickly browse back to page parents.
Wiwi's
solution is an optional « parent » field in the page edit form.
In view mode,
Wiwi displays a navigation bar linking to all parents, climbing the page
hierarchy till no more parents can be found (parent field left empty).
As from
version 0.7, Wiwi automatically sets the « parent » field of newly created pages
to a reasonable guess : the wiwi page that hosted the hyperlink (if applicable)
leading to the current page creation.
Editing Content
Wiwi
displays a wysiwyg editor whenever possible while editing pages. If the
navigator does'nt support it, the default xoops editor is displayed.This manual
won't detail how to use the editors, yet they're easy to take hands on. Let us
simply remind basic rules that are good to apply :
- use tables to fully control page layout
- don't use too many font styles neither colors
- make simple sentences, better than neverending texts that are hard to read
on screen
Table below details some special useful features :
| [[XBLK blockref]] |
This tag is replaced by the Xoops block with corresponding title
or id. Important note : no check is (yet) done on user rights before
displaying the block, so be sure of what you are doing :-) ...
|
[pagebreak]
|
This tag "cuts" your content in pages at display time ; a navigation bar to next and previous pages is automatically added.
|
| <[PageIndex]> |
This tag is replaced by the alphabetical list of all wiwi pages
in the document store. |
| <[RecentChanges]> |
This tag is replaced by the 20 last modified pages list.
|
| Images |
You can insert images in your content if the editor you selected has the convenient plugin.
Just open the « insert
image » dialog from the toolbar, choose an existing image or upload a new one on
the fly. |
| File attachments |
You can upload files onto your page, which will appear as an
icon within your text. In "view" mode, clicking the icon starts the file
download.
Some file types are recognized (pdf, word, excel, powerpoint) , thus
displaying the corresponding icon in "view" mode. The "file upload" dialog is
self-explicit ; just browse your hard drive to locate the file you want
available on-line, and click the "upload" button. |
| Flash animations |
You can insert flash animations within your page. Use the
"insert flash" button on the top toolbar. The "insert" flash dialog is
self-explicit, and much alike the "file insert" dialog. |
|
|
Table below
displays wiki codes that are interpreted by wiwi at display time, whenever they
are found in a page content :
| << text >> |
Text is strong . |
| {{ text }} |
Text is ... |
| ---- |
Horizontal rule |
| [[BR]] |
Line break |
| [[IMG url alt]] |
Image tag |
| [[link]] |
Hyperlink |
| [[link text]] |
Hyperlink |
| Xxx@domain.ext |
« mailto » hyperlink |
| CamelCaseName |
Link to the corresponding Wiwi page |
| =text= |
Header 2 |
| >text |
blockquote |
| * text |
Bullet list |
Access privileges
Wiwi
privileges are a set of named profiles describing xoops groups that eventually
have read/write/administrate access to corresponding pages.
- Readers can only display the pages for which they have read access
- Writers can modify the current page, and create new pages with the same
profile.
- Administrators can change page profiles to whichever profiles they have
"admin" privilege for.
Profiles also controls access to comments and to page revisions history.
Note : Xoops webmasters allways have
full privileges to Wiwi pages.
Profiles are
managed in Wiwi's administration menu (see the administration section
below).
Blocks
| Wiwi Recent |
This block is quite explicit : it displays the list of the last
five modified pages. No edit option for now . |
| Wiwi TOC |
Table Of Contents : this is a good complement to page hierarchy
display. This block displays the list of Wiwi pages whom "visible" field (in
the edit form) is greater thant zero. A good practice is to set visible to a
value other than zero for all "root" pages in your page hierarchy. As usual in
Xoops, the greater the « visible » value, the « heavier » the relative item in
the list. No edit option for now. |
| Wiwi Context |
This is a side block whom content depends on which Wiwi page is
currently on screen. Useful for « related links » functionnality, on-line
context sensitive help, advertising ... To apply, edit a page and fill the
« side content » field with the page name you want displayed in the side block.
If the page doesn't exist, you can create it later. |
| Wiwi ShowPage |
This block is useful if you want a specific Wiwi page displayed
in your layout (for example the Home page ...) Go to the blocks administration
panel. Then edit this block to make it visible and set the page name you want
displayed inside. |
|
|
Wiwi Administration
| Revisions |
As an administrator, you can see the history of each page and
restore a page to a former state or fix a page's state (i.e. drop all older
revisions).
Don't forget to clean up the database from time to time:
this removes all page revisions older than 2 months (except one).
|
| Privileges |
This section is where you manage all access privileges profiles
for your Wiwi pages. You can create as many profiles as you want. As an example,
three profiles are created when you install Wiwi :
- Open content : everybody (including anonymous users) can read, write and
administrate documents.
- Public content : everybody can view related pages, but only registered users
can modify or create them.
- Private content : anonymous users cannot read related pages.
Yet
you can imagine any configuration like having « project oriented » profiles
restricting access on project documents to project groups. Note : when you
delete a profile, you can choose a replacement profile for all affected pages.
|
| Preferences |
listed options are :
- wysiwyg editor choice ;
- displayed text for CamelCase links : the Camelcase code or the target page title.
- "export to pdf" button display.
- default profile : useful when migrating from earlier versions.
Note : to populate this combo, you have to edit a profile and save it at least once (even without any modification).
You can also set the standard Xoops comments
preferences (anonymous posts and approval process).
|
Blocks and Groups
|
A quick and clear place to manage Wiwi blocks , and group access to the module and corresponding blocks.
|