-
Notifications
You must be signed in to change notification settings - Fork 159
Wiki
Wiki are special types of pages and blocks which can be changed from user side (if permissions allow this). Think of UNA wiki like a regular custom pages and blocks which can be added/changed via Studio > Pages, but with some basic functionality available in user side.
The simple Wiki functionality is available by default (without installing Wiki module) - it's wiki blocks. You can add wiki block via Studio > Pages, and then change this block from user side - only by operator - so if you have access to Studio, then you can change such wiki blocks too.
Wiki blocks are special types of blocks which save all changes history and support Markdown syntax, replacement markers, macros, translations. After wiki block is added you can perform the following actions with the block if permissions allow:
- Edit - edit main language and translations
- Delete version - delete some revision from the history
- Delete block - delete block with all translations and revisions
- Translate - edit all languages except main language
- History - show changes history for current language
Main language - is language which was added first.
There are different permissions available. These permissions are different for the system and for Wiki module.
-
Add Page
- ability to add new wiki pages from user side (isn't available for system) -
Add Block
- ability to add new block -
Edit Block
- ability to edit block content and translations -
Translate Block
- ability to translate block content, i.e. edit translation for all languages except main language -
Delete Block
- ability to delete block with all translations and revisions -
Delete Version
- ability to delete revisions -
History
- ability to view block content changes history -
Unsafe HTML
- ability to use unsafe (style
andscript
) HTML in block content
By default - system wiki blocks actions are enabled for Operators only, in Wiki module wiki block actions are enabled for Admins and Moderators only.
To get more extended wiki functionality - install Wiki module, then more functionality will be available in user side, particularly adding new pages.
To add new page just type in the the URL, for example if your site is on http://example.com/
, then to add new Wiki page type in your browser address string the following URL http://example.com/wiki/new-page
, where new-page
is unique identifier of new page. If permissions to add page is enabled for you then it will ask you to create new wiki page. Please note that new-page
must be unique identifier systemwide, including regular pages. For example if http://example.com/page/about
page already exists then you can't add http://example.com/wiki/about
. When page is added it uses default layout with one cell, changing wiki page layout is possible in Studio > Pages only for now.
Wiki module also allows to add new blocks from user side, if you are on wiki page and Add Block
permission is enabled for you then you can add wiki blocks to each cell on the page. When block is added it's empty and can be changed by editing it. Added block uses default block's design box - without title, borders and background, but it can be changed in Studio > Wiki > Settings. After block is added block's design box can be changed in Studio > Pages only for now.
IMPORTANT NOTE: documentation was moved here - https://una.io/wiki/Introduction