Forums

Home » Liferay Portal » English » 2. Using Liferay » General »

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Bernardo Riveira Faraldo
mediawiki import
November 3, 2008 9:35 AM
Answer

Bernardo Riveira Faraldo

Rank: Regular Member

Posts: 136

Join Date: October 30, 2008

Recent Posts

I have succesfully used the mediawiki importer to import a big departamental wiki, but we have found a missing functionality we use extensively: that of including links to locally uploaded files with the [[Media:...|...]] link type (similar to uploading images but with almost any kind of file)

is there any plan to support it in the future?

thanks in advance
Elwin Vreeke
RE: mediawiki import
November 4, 2008 4:10 AM
Answer

Elwin Vreeke

Rank: New Member

Posts: 8

Join Date: September 10, 2007

Recent Posts

Bernardo, my attention was drawn to this topic by the subject. We would like to use the media import functionality as well, but I can't find much documentation about this. Do you happen to know if there is some documentation about this and where that can be found?

Currently all I can find is the import functionality in the settings of the wiki portlet. But this requires an .lar file, which is a Liferay specific file (if i'm correct). I don't know how to get my media wiki into a .lar file.
Or is there a special media wiki import place in Liferay available?

Hope that you can help with this?

Did the imported images work? Or did all the attachments fail?
Bernardo Riveira Faraldo
RE: mediawiki import
November 4, 2008 11:03 AM
Answer

Bernardo Riveira Faraldo

Rank: Regular Member

Posts: 136

Join Date: October 30, 2008

Recent Posts

No, it does not work that way

You can import a LAR file which is a native LifeRay Wiki export file (.lar is just a renamed .zip with native metadata and data about LifeRay resources; you export things from LifeRay in lar files and can import them alos)

If you want to import MediaWiki content, you first export in MediaWiki to an XML file using the "special pages" section, "export pages"; for that, you need the name of all the pages you want to export, which you can get with the special "all pages`" page. I copied the "all pages" content to a text file, changed tabs to new lines, and copied back those page names (the names from all the pages from the wiki) in the "export pages" utility and got an XML file

to get the images, you need another ZIP file, with every file you can find in the "images" folder on the wiki installation

with that XML and ZIP files, you go to LifeRay to import it, but not where you're looking; use the "admin wiki" icon with the tool near the top left corner of the wiki portlet; from there you can see an action button for the wiki, with a "import" menu option you need to import mediawiki content

don't know if images work, as we did not use that functionality in the wiki (just the Media: link type that the LifeRay wiki does not honor)
Elwin Vreeke
RE: mediawiki import
November 5, 2008 2:30 AM
Answer

Elwin Vreeke

Rank: New Member

Posts: 8

Join Date: September 10, 2007

Recent Posts

Thank you for your clear explanation.

I successfully created an export of my mediawiki pages, but I couldn't find the import menu option you were talking about.
But I did found in the support pages LEP-6016, which describes adding this option to the actions menu in Liferay 5.1.0.

We unfortunately still use Liferay 5.0, that is the reason why i can't use this funtion yet,
but right now I do know how to import the wiki. As soon as we have migrated to 5.1 (or higher),
i'll try to import our existing media wiki immediately.
Elwin Vreeke
RE: mediawiki import
November 13, 2008 4:56 AM
Answer

Elwin Vreeke

Rank: New Member

Posts: 8

Join Date: September 10, 2007

Recent Posts

An update for the people who are interested in this subject:

Although we currently can't use Liferay 5.1, we do like to import our existing mediawiki into Liferay 5.0.

I tried to export the wiki as described by Bernardo (resulting in a xml file with all the pages and history, a zip file with all the images and an extra csv file containing the users of the mediawiki), this succeeded.

Then I setup a test Liferay 5.1 instance (just running the tomcat bundle from the website) and import these files as described.
This took a while, but resulted in a wiki in Liferay (some layout issue, especially tables).

The next step was exporting this wiki to a Liferay .lar file.

I was hoping to import this to the old Liferay version, but this can't be done, because the export from 5.1 is completely different from 5.0.

We really need to upgrade before importing the wiki
Justin Permar
RE: mediawiki import
December 29, 2008 12:10 PM
Answer

Justin Permar

Rank: New Member

Posts: 13

Join Date: December 10, 2008

Recent Posts

Bernardo Riveira Faraldo:

If you want to import MediaWiki content, you first export in MediaWiki to an XML file using the "special pages" section, "export pages"; for that, you need the name of all the pages you want to export, which you can get with the special "all pages`" page. I copied the "all pages" content to a text file, changed tabs to new lines, and copied back those page names (the names from all the pages from the wiki) in the "export pages" utility and got an XML file



Hi. I successfully exported MediaWiki pages using this method. However, I notice that templates are not exported! More about templates here: http://www.mediawiki.org/wiki/Help:Templates

Anyone know of a way to export templates? Also, can the mediawiki importer import templates?

Thanks!
Denis Signoretto
RE: mediawiki import
April 28, 2009 4:28 AM
Answer

Denis Signoretto

Rank: Junior Member

Posts: 87

Join Date: April 21, 2009

Recent Posts

Bernardo Riveira Faraldo:

to get the images, you need another ZIP file, with every file you can find in the "images" folder on the wiki installation


I encountered problems using a common zip utility (7 Zip in my case) because if you have file names with special charachters the Liferay unzip utility expect them encoded UTF8. I solved the problem making the zip file with the "jar command utility" and avoinding thumb, archive and temp directories that are not used by the import function. (All with LR version 5.2.2).

Denis.