« Back to Portlets

Wiki Portlet

Introduction #

Liferay includes in its bundle a portlet that allows creation of contents in the Wiki collaboration style. The Wiki Wiki concept was invented by Ward Cunningham and has seen since then lots of different implementations.

Nodes #

Liferay allows the organization of pages in groups called nodes. Each node acts as a whole wiki with its own set of permissions, recent changes list and listing of all pages.

With the introduction of the new permissions system in Liferay 4, the Wiki was gained a very powerful functionality that allows you either to use the wiki in the traditional way (open to anyone) or use it also as a tool to organize private information to certain organizations, locations or groups of people.

A node is created by clicking on the Add node button and filling the title and optionally the description. After creating a node an initial page called FrontPage is automatically created and can be edited clicking on the 'Edit Page' link in the bottom of the wiki window.

To create new pages you have to edit an existing page and use the CamelCase syntax as described next to create a link to the new page. Until the page is created instead of being converted to a link, the name of the new page will be preceeded by a question mark. Clinking on the question mark will create the page. Once it is created the page can be edited regularly and its name on the originating page will be converted to a link. Please note : This does not work inside the HTML Editor.

Editing modes #

Liferay wiki comes with three editing modes: Creole, HTML, and Classic.

Creole #

Creole was a syntax that came about through a growing dissatisfaction in the Wiki community of a non-standard language. Headed by Ward Cunningham, who invented the Wiki technology with C2, the Creole design team believed that "... markup should be easy to learn and easy to teach, as well as fast to type and should use readable markup which is non-destructive" (see article).

Creole syntax has been added into the suite of Wiki languages supported by Liferay since version 5.0. Some examples of its basic syntax include:

Text Styles

//italics//
**bold**

Headers

== Large heading ==
=== Medium heading ===
==== Small heading ===

Links

[[Link to a page]]
[[http://www.liferay.com|Link to website]]

Lists

* Item
** Subitem
# Ordered Item
## Ordered Subitem

Images

{{attached-image.png}}
{{Page Name/other-image.jpg|label}}

In-line CSS injection(Note: this is not officially part of the Creole 1.0 specification, but it works because Liferay's wiki is based on the JSPWiki engine. Used it only if you absolutely must)

%%(color:red) red%%  %%(color:blue)blue%%  %%(color:green)green%%

%%(color:red) red%% %%(color:blue)blue%% %%(color:green)green%%

%%(text-align:center)
**This line is centered**
%%

%%(text-align:center) This line is centered %%
Tables with more complex CSS injection:

||%%(text-align:left;display:block;)Left Heading%% ||%%(text-align:center;display:block;)Center Heading%% 
(break added for readability) ||%%(text-align:right;display:block;)Right Heading%%
|%%(text-align:left;display:block;)Left Cell 11%% |%%(text-align:center;display:block;)Center Cell 12%% 
(line break added for readability) |%%(text-align:right;display:block;)Right Cell 13%%
|%%(text-align:left;display:block;)Left Cell 21%% |%%(text-align:center;display:block;)Center Cell 22 
(line break added for readability) (longer for illustration)%% |%%(text-align:right;display:block;)Right Cell 23%%
|%%(text-align:left;display:block;)left%% |%%(text-align:center;display:block;)center%% 
(line break added for readability)|%%(text-align:right;color:red;display:block;)combine alignment and color%% 
%%(text-align:left;display:block;)Left Heading%% %%(text-align:center;display:block;)Center Heading%% %%(text-align:right;display:block;)Right Heading%%
%%(text-align:left;display:block;)Left Cell 11%% %%(text-align:center;display:block;)Center Cell 12%% %%(text-align:right;display:block;)Right Cell 13%%
%%(text-align:left;display:block;)Left Cell 21%% %%(text-align:center;display:block;)Center Cell 22 (longer for illustration)%% %%(text-align:right;display:block;)Right Cell 23%%
%%(text-align:left;display:block;)left%% %%(text-align:center;display:block;)center%% %%(text-align:right;color:red;display:block;)combine alignment and color%%

Other

<<TableOfContents>>
{{{ Preformatted }}}

For full syntax rules can be found at the Creole 1.0 spec.

HTML #

In this mode the text area incorporates an embedded HTML editor (by default FCKEditor) that allows the user to write the document in a WYSIWYG similar to how they work in Ms Word or Open Office (although somewhat more limited, of course).

Please note: When switching back and forth from Creole to HTML the format will not be converted automatically. You'll have to do it manually.

Classic #

The classic editing mode is the most usual for wikis and uses text conventions to format the text. The text is later converted to HTML to be presented. Liferay uses the Friki engine to do this conversion. It's syntax is described in:

This syntax is inspired and pretty much the same to that of the original Wiki. Documentation about that syntax can be found in:

Links are created by writting two or more words together (without spaces between them) and uppercasing the first letter of each of the words. This is known as CamelCase syntax.

 LinkExample

To create monospaced text write a blank or more spaces at the beginning of the line

 {{{   This would be converted to monospaced font}}}

To write italics put two single quotes at the beginning and at the end of the text

 {{{''italics''}}}

To write bold put three single quotes at the beginning and at the end of the text

 {{{'''bold'''}}}

Four dashes by themselves on a single text line create an horizontal line

 ----

Classic (Enhanced in 4.3.1+) #

While awaiting the integration of an alternative wiki engine (as has been discussed and often requested), we've made a few changes for the 'Classic Wiki' mode such that it's usability and familiarity should be much greater.

Instead of going the 'Classic Wiki' syntax direction, we've taken this 'Enhanced' version in the MediaWiki direction.

Here is a snapshot of the rules as they are now:

Added Media Wiki style internal links

 [ Page Name | Link Text ]

Features not shown are the same as they were.

References #

Image Gallery is one of Liferay's Out of The Box Portlets

0 Attachments
37513 Views
Average (1 Vote)
Comments

Showing 35 Comments

K Pink
4/10/09 11:37 AM

How can I remove FRONT PAGE from each wiki page?
thanks

Dmitry Babain
5/29/09 1:47 AM

Same question...

Per Spilling
6/11/09 10:43 AM

It seems that it is not possible to switch back and forth between Creole and HTML editing mode in the Wiki Portlet. Is this a bug or a feature?

Lorinc Nyitrai
8/6/09 7:11 AM

I miss the fearure that makes all Wikis structured: the Category page. I suppose that the Child page feature is intended to be its replacement.

Lorinc Nyitrai
8/6/09 7:14 AM

I used redirection for that purpose.

Jonas Yuan
8/28/09 5:07 PM

Thank you, Brian.

Helpful Wiki article.

Claas Ruschmeyer
10/3/09 1:45 AM

see http://issues.liferay.com/browse/LPS-5221

Corné Aussems
1/22/10 1:36 AM

Is there a reason why the replies are not hierarchical like MessageBoard?

Robin Mitra
2/17/10 8:09 AM

Is there a way to link from one wiki page to another by using the html FCKeditor? I couldn't find a way to do it.

Robin Mitra
2/17/10 8:12 AM

Found it by mistake! When adding a link, select "other" as the protocol and enter the page name in the url field. Simple enough!

Alexia Biggs
2/28/10 5:26 PM

<a href="http://www.google.com/" rel="dofollow">nice</a>

Senthil Chockalingam
6/29/10 2:18 AM

Dear Team,

it's is possible to keep the Revert option for Only for Admin(Owner)?
this.emoticonemoticon

pooja shah
8/4/10 11:37 PM

how can i subscribe wiki for email notification (for updates or changes in wiki)

Puj Z
8/31/10 5:52 AM

Is there anyway to change some settings to make the wiki content right-to-left for languages like Arabic?

Sravani M
11/5/10 9:06 PM

How can i remove "Front Page" heading from the wiki portlet.

Mohammed Azam
11/25/10 11:40 PM

how can i give users the option to create new page add edit etc

Ryan Paul Schultz
1/20/11 11:39 AM

Is there a way to filter out, and view only those Wikis that you have either started, or edited in the past? Similar to viewing 'My Documents'.

Vladimir Vladimirovich Druzenko
8/7/11 5:38 AM

Liferay 6.0.6 CE - can't find Classic formats. Only Creole and HTML.
Where is it?

Bob Lyman
9/1/11 12:31 PM

How does one implement Captcha in the Wiki?

Krishna Gadde
9/22/11 6:00 AM

test

Christine Sætre
11/10/11 2:54 AM

We have now invested 6 months in building an enterprise wiki, using Creol wiki (with WYSIWYG). Problem is we have now discovered a number of number of bugs that make launch impossible.
(1) Wish we had known that you can't link to email addresses! This has to be an option even in the simplest web page, and works in Creol, but not in Liferay. If it does I haven't found any information on what we might have done wrong locally.
(2) Line breaks don't work as specified above;
(3) Permalinks anchors after headings link to the incorrect page if an internal link precedes them.
(4) ... and it is increasingly hard to find clear information on fix it yourself options or potential relief from these issues. http://bit.ly/sWIhbz
One JIRA post from Vincent Lu (http://bit.ly/tyP9v0) says "... removing the Creole Filter JAR from the Liferay Portal distribution in favor for the creole implementation from JSPWiki might solve the [some] problems ..." but there is no further information from the community or on Liferay.com about this operation or other things one can try.
We like the Liferay product, but these latest issues are pretty frustrating.

sherry quik
12/21/11 7:50 AM

How to zero-rise the "Views" for each page?

Mani kandan
1/10/12 3:23 AM

good article

starr Cancer
3/1/12 2:02 AM

Thank you for this documentary ... thank you, thank you. And thank you to the amazing Mr Glendinning.

Regards,
Custom Written Papers

Tool Man
3/5/12 3:35 AM

Best way to rescue your own will is to sleep with the pills "Reading this post reminds me of my old room mate! He always kept talking about this."

Regards,
Buy Power Tools

Tool Man
3/5/12 4:03 AM

Keep the lamb grow up " I really like what you have acquired here, certainly like what you're stating and the way in which you say it. You make it enjoyable and you still care for to keep it smart. "

Regards,
Makita Tool Parts

Clark Taylor
4/5/12 3:13 AM

The content you have provided is pretty interesting and useful and I will surely take note of the point you have made in the post.
Regards
<a href="http://www.netlawman.co.uk">Legal documents</a>

Clark Taylor
4/5/12 3:16 AM

The content you have provided is pretty interesting and useful and I will surely take note of the point you have made in the post.
Regards,
<a href="http://www.netlawman.co.uk">Legal documents</a>

Paul John
4/5/12 3:39 AM

I really searched on the net for this kind of articles...but never found..now i got one..so i am gonna stick with this in future updates also.

Regards
[http://www.netlawman.ie Legal Documents]

Paul John
4/5/12 3:42 AM

I approach to do some additional exploration on this. Gives thanks for sharing this timely data. We require additional like this.
<a href='http://www.scotlawman.co.uk/'>Legal agreement</a>

Paul John
4/5/12 11:40 PM

Everything is very open and very clear explanation of issues. was truly information. Your lense is very useful. Thanks for sharing.
[[http://www.netlawman.ie/|Legal Documents]]

Paul John
4/5/12 11:44 PM

Thanks for sharing most helpful information about Legal documents i am feeling good after read this great article i personally appreciate you thanks for nice lens
"Legal Documents":http://www.netlawman.ie
[[http://www.netlawman.co.uk|Legal Documents]]

Bertha Carter
4/25/12 11:39 PM

What does "this portlet has been temporarily disabled" mean?

I am trying to access my account with my insurance company and the web page reads "this portlet has been temporarily disabled"

~Bertha M. Carter, <a href="http://www.themiamiinjurylawyers.com">Miami car accident lawyer</a>

adam smith
5/17/12 4:50 PM

The information you have on this blog is so good that I wouldn’t mind paying to be able to access it. But could you please do something about the spam here. It prevents me from asking questions about the subject. Great resource, anyway. Shouldn’t be complaining
<a href="http://imchemist.hubpages.com/hub/WellbutrinSideEffects">Wellbutrin Side Effects<a/>

adam smith
5/17/12 4:54 PM

Thanks on your marvelous posting! I certainly enjoyed reading it, you will be a great Author. I will remember to bookmark your blog and will eventually come back from now on. I want to encourage that you continue your great writing, have a nice day!
<a href='http://imchemist.hubpages.com/hub/WellbutrinSideEffects
'>wellbutrin</a>