フォーラム

ホーム » Liferay Portal » English » 9. Announcements

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
該当件数: 39 件中 1 - 20
/ 2
Juan Fernández
Wordpress Importer 1.2 released!
2013/05/17 2:28
答え

Juan Fernández

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1262

参加年月日: 2008/10/02

最近の投稿

Hello community!

After more than 400 downloads of the previous versions and a good feedback from several users around the world, I'm proud to announce a new version of the Wordpress Importer Portlet: this is Wordpress Importer Portlet version 1.2.

This portlet is now compatible with Liferay 6.1CE and has several bug fixes, improvements and refactorings to improve the quality and legibility of the code.

These are the main improvements and new features:

- Import blog entry comments (ultra-demanded popular feature emoticon)
- Create user accounts for all Wordpress commenters so that if they create an account in the portal, all their imported comments will be associated to their accounts.
- Respect the original images formatting
- Spanish translation (french and chinese coming soon)

Apart from that, I think it's worth mentioning that I migrated the code to GitHub (https://github.com/juanferrub/liferay-wordpress-importer), and I'm using the issues tool provided by GitHub to track all the improvement requests and bug reports.

For a future version I'd like to integrate with wordpress-java (http://code.google.com/p/wordpress-java/) an opensource library that interacts with Wordpress XMLRPC API, so that you could enter you user name, password and wordpress site url in the importer and it access all the content without further interactions. This is a feature already requested by community members, so I'll look at it.

I want to thank you all for all the comments and contributions and I wish you go on commenting and asking for (and contributing!! emoticon) new features. Feel free to do it here or in the GitHub issue tracker.

Links:

Download link: http://sourceforge.net/projects/wordpressimport/files/latest/download
Source code: http://github.com/juanferrub/Liferay-Wordpress-Importer-Portlet
Github issue tracker: http://github.com/juanferrub/Liferay-Wordpress-Importer-Portlet/issues

Thanks and enjoy!
Juan Fernández
Jonas Yuan
RE: Wordpress Importer 1.2 released!
2012/02/06 6:46
答え

Jonas Yuan

ランク: Liferay Master

投稿: 993

参加年月日: 2007/04/26

最近の投稿

Nice! Thanks a lot, Juan!

Jonas Yuan

==================
The Author of Liferay Books:
Liferay 6.1 cookbook: Liferay Portal Systems Development
Liferay User Interface Development
Liferay Portal 6 Enterprise Intranets
Liferay Portal 5.2 Systems Development
Liferay Portal Enterprise Intranets
Nisarg Parikh
RE: Wordpress Importer 1.2 released!
2012/02/08 4:22
答え

Nisarg Parikh

ランク: Expert

投稿: 262

参加年月日: 2009/12/30

最近の投稿

Downloaded and tested..!!! emoticon

Works perfect.. Thanks... Excellent utility..!!!
Juan Fernández
RE: Wordpress Importer 1.2 released!
2012/02/08 4:29
答え

Juan Fernández

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1262

参加年月日: 2008/10/02

最近の投稿

Wow, Nisarg! Thanks for the rapid feedback! Glad you liked it! emoticon

Please tell me if you find something we could improve. I'm adding now support for embedded youtube videos, which is quite usual in many wordpress blogs.
Thanks!
Juan
Nisarg Parikh
RE: Wordpress Importer 1.2 released!
2012/02/08 5:00
答え

Nisarg Parikh

ランク: Expert

投稿: 262

参加年月日: 2009/12/30

最近の投稿

Hi Juan,

I guess showing of Errors and Exceptions should be improved.

First, I have uploaded other than Wordpress XML file and on UI it shows file uploaded successfully but on back-end it gives proper message. Below message should be on UI side so that user understand the error.

"Starting the Wordpress importer
Woops! There was an error reading the file. Are you sure it's an xml file generated by Wordpress?"


Second time again it shows success message on back-end only.
"Import finished
Sucessfully imported 1 pages, 1 categories, 65 tags"


Apart from that some Help showing how to start will also helpful.

Thank you.

-Nisarg
Richard Robbins
RE: Wordpress Importer 1.2 released!
2012/03/02 10:20
答え

Richard Robbins

ランク: New Member

投稿: 2

参加年月日: 2012/03/01

最近の投稿

I've downloaded and uploaded the wordpress 1.2 importer war file under plug in installer. I am getting a green bar that I have been successful but when I go to control panel, I am not getting the "wordpress importer"- am i doing something wrong?

any help would be appreciated.

Thanks!

Richie
Juan Fernández
RE: Wordpress Importer 1.2 released!
2012/03/05 3:48
答え

Juan Fernández

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1262

参加年月日: 2008/10/02

最近の投稿

Hi Richard:
Which version of Liferay Portal are you using? Are you getting any error message in the server console? Can you add the portlet via Add Applications -> Wordpress -> Wordpress Importer Portlet in a site page?
Thanks
Juan
Richard Robbins
RE: Wordpress Importer 1.2 released!
2012/03/12 8:08
答え

Richard Robbins

ランク: New Member

投稿: 2

参加年月日: 2012/03/01

最近の投稿

Juan Fernández:
Hi Richard:
Which version of Liferay Portal are you using? Are you getting any error message in the server console? Can you add the portlet via Add Applications -> Wordpress -> Wordpress Importer Portlet in a site page?
Thanks
Juan



Juan,

I am not getting that option. As far an error message in the server console, I am not sure.

I download the .war file- then I go into the control panel>plugins installation>install more portlets> upload file and then its successful.

Do I need to go back and do "add application">install more applications ?

Thanks!

Richie
Akira Akira
RE: Wordpress Importer 1.2 released!
2013/05/17 1:46
答え

Akira Akira

ランク: Junior Member

投稿: 68

参加年月日: 2010/09/24

最近の投稿

I want convert path image_thumbnail_id( Wordpress) to smallImageUrl (Liferay). I need help ? Thanks
Juan Fernández
RE: Wordpress Importer 1.2 released!
2013/05/17 2:25
答え

Juan Fernández

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1262

参加年月日: 2008/10/02

最近の投稿

Hi Akira:
You'll need to extend WordpressUtil.java to match your requirements. Where are those pictures? Are they part of the blog entries? Basically, you'll need to parse its appeareance and then call the corresponding Liferay service where you want to add them. Will this be part of a web content or a blog entry?

Don't hesitate in asking me, and if you manage to implement it, please contribute it and I'll release a new version
Thanks,
Juan
Akira Akira
RE: Wordpress Importer 1.2 released!
2013/05/22 3:07
答え

Akira Akira

ランク: Junior Member

投稿: 68

参加年月日: 2010/09/24

最近の投稿

I'm busy so did not answer. This issue has been resolved.
I create 2 table. 1 table store value wp:post_id and wp:attachment_url. 1 table store value _thumbnail_id and wp:post_date. Store data temp table then insert wp:attachment_url to smallUrlImage.

 1<item>
 2        <title>Futrur</title>
 3        <link>/?attachment_id=21922</link>
 4        <pubDate>Wed, 15 May 2013 07:38:10 +0000</pubDate>
 5        <dc:creator></dc:creator>
 6        <guid isPermaLink="false">/wp-content/uploads/2013/05/Futrur1.jpg</guid>
 7        <description></description>
 8        <content:encoded><![CDATA[]]></content:encoded>
 9        <excerpt:encoded><![CDATA[]]></excerpt:encoded>
10    [b]    <wp:post_id>21922</wp:post_id>[/b]
11        <wp:post_date>2013-05-15 14:38:10</wp:post_date>
12        <wp:post_date_gmt>2013-05-15 07:38:10</wp:post_date_gmt>
13        <wp:comment_status>open</wp:comment_status>
14        <wp:ping_status>open</wp:ping_status>
15        <wp:post_name>futrur-2</wp:post_name>
16        <wp:status>inherit</wp:status>
17        <wp:post_parent>21897</wp:post_parent>
18        <wp:menu_order>0</wp:menu_order>
19        <wp:post_type>attachment</wp:post_type>
20        <wp:post_password></wp:post_password>
21        <wp:is_sticky>0</wp:is_sticky>
22    [b]    <wp:attachment_url>/wp-content/uploads/2013/05/Futrur1.jpg</wp:attachment_url>[/b]
23        <wp:postmeta>
24            <wp:meta_key>_wp_attached_file</wp:meta_key>
25            <wp:meta_value><![CDATA[2013/05/Futrur1.jpg]]></wp:meta_value>
26        </wp:postmeta>
27        <wp:postmeta>
28            <wp:meta_key>_wp_attachment_metadata</wp:meta_key>
29            <wp:meta_value><![CDATA[a:6:{s:5:"width";s:3:"150";s:6:"height";s:3:"100";s:14:"hwstring_small";s:23:"height='85' width='128'";s:4:"file";s:19:"2013/05/Futrur1.jpg";s:5:"sizes";a:1:{s:16:"index-categories";a:3:{s:4:"file";s:17:"Futrur1-20x13.jpg";s:5:"width";s:2:"20";s:6:"height";s:2:"13";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}}]]></wp:meta_value>
30        </wp:postmeta>
31    </item>


 1<item>
 2        <title></title>
 3        <link>/?p=21897</link>
 4        <pubDate>Wed, 15 May 2013 07:23:34 +0000</pubDate>
 5        <dc:creator>T</dc:creator>
 6        <guid isPermaLink="false">/?p=21897</guid>
 7        <description></description>
 8        <content:encoded><![CDATA[</excerpt:encoded>
 9        <wp:post_id>21897</wp:post_id>
10        <wp:post_date>2013-05-15 14:23:34</wp:post_date>
11        <wp:post_date_gmt>2013-05-15 07:23:34</wp:post_date_gmt>
12        <wp:comment_status>open</wp:comment_status>
13        <wp:ping_status>open</wp:ping_status>
14        <wp:post_name></wp:post_name>
15        <wp:status>publish</wp:status>
16        <wp:post_parent>0</wp:post_parent>
17        <wp:menu_order>0</wp:menu_order>
18        <wp:post_type>post</wp:post_type>
19        <wp:post_password></wp:post_password>
20        <wp:is_sticky>0</wp:is_sticky>
21        <category domain="category" nicename="bai-viet"><![CDATA[]]></category>
22        <category domain="post_tag" nicename="chung-toi-noi-ve-chung-toi"><![CDATA[i]]></category>
23        <wp:postmeta>
24            <wp:meta_key>_edit_last</wp:meta_key>
25            <wp:meta_value><![CDATA[436]]></wp:meta_value>
26        </wp:postmeta>
27        <wp:postmeta>
28            <wp:meta_key>views</wp:meta_key>
29            <wp:meta_value><![CDATA[291]]></wp:meta_value>
30        </wp:postmeta>
31    [b]    <wp:postmeta>
32            <wp:meta_key>_thumbnail_id</wp:meta_key>
33            <wp:meta_value><![CDATA[21922]]></wp:meta_value>
34        </wp:postmeta>
35        [/b]
36   
37        <wp:comment>
38            <wp:comment_id>27891</wp:comment_id>
39            <wp:comment_author></wp:comment_author>
40            <wp:comment_author_email></wp:comment_author_email>
41            <wp:comment_author_url></wp:comment_author_url>
42            <wp:comment_author_IP>10.2.28.125</wp:comment_author_IP>
43            <wp:comment_date>2013-05-15 14:33:40</wp:comment_date>
44            <wp:comment_date_gmt>2013-05-15 07:33:40</wp:comment_date_gmt>
45            <wp:comment_content><![CDATA[:!:]]></wp:comment_content>
46            <wp:comment_approved>1</wp:comment_approved>
47            <wp:comment_type></wp:comment_type>
48            <wp:comment_parent>0</wp:comment_parent>
49            <wp:comment_user_id>1201</wp:comment_user_id>
50        </wp:comment>
51    </item>
Juan Fernández
RE: Wordpress Importer 1.2 released!
2013/05/22 3:33
答え

Juan Fernández

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1262

参加年月日: 2008/10/02

最近の投稿

Akira Akira:
I'm busy so did not answer. This issue has been resolved.


Good to know, Akira!
Will you share your code with the community so that I can improve the plugin and release a new version with this new feature?
Thanks!
Juan
Mario Rossi
RE: Wordpress Importer 1.2 released!
2013/06/16 11:43
答え

Mario Rossi

ランク: New Member

投稿: 2

参加年月日: 2013/05/28

最近の投稿

Akira Akira:
I'm busy so did not answer. This issue has been resolved.
I create 2 table. 1 table store value wp:post_id and wp:attachment_url. 1 table store value _thumbnail_id and wp:post_date. Store data temp table then insert wp:attachment_url to smallUrlImage.

 1<item>
 2        <title>Futrur</title>
 3        <link>/?attachment_id=21922</link>
 4        <pubDate>Wed, 15 May 2013 07:38:10 +0000</pubDate>
 5        <dc:creator></dc:creator>
 6        <guid isPermaLink="false">/wp-content/uploads/2013/05/Futrur1.jpg</guid>
 7        <description></description>
 8        <content:encoded><![CDATA[]]></content:encoded>
 9        <excerpt:encoded><![CDATA[]]></excerpt:encoded>
10    [b]    <wp:post_id>21922</wp:post_id>[/b]
11        <wp:post_date>2013-05-15 14:38:10</wp:post_date>
12        <wp:post_date_gmt>2013-05-15 07:38:10</wp:post_date_gmt>
13        <wp:comment_status>open</wp:comment_status>
14        <wp:ping_status>open</wp:ping_status>
15        <wp:post_name>futrur-2</wp:post_name>
16        <wp:status>inherit</wp:status>
17        <wp:post_parent>21897</wp:post_parent>
18        <wp:menu_order>0</wp:menu_order>
19        <wp:post_type>attachment</wp:post_type>
20        <wp:post_password></wp:post_password>
21        <wp:is_sticky>0</wp:is_sticky>
22    [b]    <wp:attachment_url>/wp-content/uploads/2013/05/Futrur1.jpg</wp:attachment_url>[/b]
23        <wp:postmeta>
24            <wp:meta_key>_wp_attached_file</wp:meta_key>
25            <wp:meta_value><![CDATA[2013/05/Futrur1.jpg]]></wp:meta_value>
26        </wp:postmeta>
27        <wp:postmeta>
28            <wp:meta_key>_wp_attachment_metadata</wp:meta_key>
29            <wp:meta_value><![CDATA[a:6:{s:5:"width";s:3:"150";s:6:"height";s:3:"100";s:14:"hwstring_small";s:23:"height='85' width='128'";s:4:"file";s:19:"2013/05/Futrur1.jpg";s:5:"sizes";a:1:{s:16:"index-categories";a:3:{s:4:"file";s:17:"Futrur1-20x13.jpg";s:5:"width";s:2:"20";s:6:"height";s:2:"13";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}}]]></wp:meta_value>
30        </wp:postmeta>
31    </item>


 1<item>
 2        <title></title>
 3        <link>/?p=21897</link>
 4        <pubDate>Wed, 15 May 2013 07:23:34 +0000</pubDate>
 5        <dc:creator>T</dc:creator>
 6        <guid isPermaLink="false">/?p=21897</guid>
 7        <description></description>
 8        <content:encoded><![CDATA[</excerpt:encoded>
 9        <wp:post_id>21897</wp:post_id>
10        <wp:post_date>2013-05-15 14:23:34</wp:post_date>
11        <wp:post_date_gmt>2013-05-15 07:23:34</wp:post_date_gmt>
12        <wp:comment_status>open</wp:comment_status>
13        <wp:ping_status>open</wp:ping_status>
14        <wp:post_name></wp:post_name>
15        <wp:status>publish</wp:status>
16        <wp:post_parent>0</wp:post_parent>
17        <wp:menu_order>0</wp:menu_order>
18        <wp:post_type>post</wp:post_type>
19        <wp:post_password></wp:post_password>
20        <wp:is_sticky>0</wp:is_sticky>
21        <category domain="category" nicename="bai-viet"><![CDATA[]]></category>
22        <category domain="post_tag" nicename="chung-toi-noi-ve-chung-toi"><![CDATA[i]]></category>
23        <wp:postmeta>
24            <wp:meta_key>_edit_last</wp:meta_key>
25            <wp:meta_value><![CDATA[436]]></wp:meta_value>
26        </wp:postmeta>
27        <wp:postmeta>
28            <wp:meta_key>views</wp:meta_key>
29            <wp:meta_value><![CDATA[291]]></wp:meta_value>
30        </wp:postmeta>
31    [b]    <wp:postmeta>
32            <wp:meta_key>_thumbnail_id</wp:meta_key>
33            <wp:meta_value><![CDATA[21922]]></wp:meta_value>
34        </wp:postmeta>
35        [/b]
36   
37        <wp:comment>
38            <wp:comment_id>27891</wp:comment_id>
39            <wp:comment_author></wp:comment_author>
40            <wp:comment_author_email></wp:comment_author_email>
41            <wp:comment_author_url></wp:comment_author_url>
42            <wp:comment_author_IP>10.2.28.125</wp:comment_author_IP>
43            <wp:comment_date>2013-05-15 14:33:40</wp:comment_date>
44            <wp:comment_date_gmt>2013-05-15 07:33:40</wp:comment_date_gmt>
45            <wp:comment_content><![CDATA[:!:]]></wp:comment_content>
46            <wp:comment_approved>1</wp:comment_approved>
47            <wp:comment_type></wp:comment_type>
48            <wp:comment_parent>0</wp:comment_parent>
49            <wp:comment_user_id>1201</wp:comment_user_id>
50        </wp:comment>
51    </item>


Thanks for sharing this Akira.
I was looking for a way to convert path image_thumbnail_id( Wordpress) to smallImageUrl (Liferay) and your solution works like a charm.
gordon daniels
RE: Wordpress Importer 1.2 released!
2013/11/05 12:00
答え

gordon daniels

ランク: Liferay Master

投稿: 723

参加年月日: 2008/08/23

最近の投稿

Hi Juan:

Thanks for this portlet. Is there any documentation that tells how to configure it. I talked one of my friends into using liferay (now they are not friend :-)) but she has a wordpress blog and wants to import it into liferay. Any instructions would be helpful.

thanks
Juan Fernández
RE: Wordpress Importer 1.2 released!
2013/11/06 2:28
答え

Juan Fernández

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1262

参加年月日: 2008/10/02

最近の投稿

Hi Gordon!
Not much to explain here, as it is quite simple. You just need to do two things:
1) Export your wordpress site. This will generate an XML file. (How to export a Wordpress site)
2) Inport this XML file using the Wordpress Importer: you'll see all the generated entries, images, tags, categories, etc in you Liferay Portal.
That's it! emoticon

If you have any issues, please report them and I'll do my best to help you (or fix anything if there's an error)
Best,
Juan
gordon daniels
RE: Wordpress Importer 1.2 released!
2013/11/06 9:26
答え

gordon daniels

ランク: Liferay Master

投稿: 723

参加年月日: 2008/08/23

最近の投稿

thanks for the prompt reply. Since i don't use wordpress did not know that. Will give it a try and let you know what we think.

thanks again
gordon daniels
RE: Wordpress Importer 1.2 released!
2014/01/11 18:57
答え

gordon daniels

ランク: Liferay Master

投稿: 723

参加年月日: 2008/08/23

最近の投稿

Juan: I imported my friends wordpress bllog and was surprised at the outcome. It created entrieds on the navigation menu, and the content shows only in the wordpress portlet. You have to click on the tabs in the navigation bar and some text appears in portlet. It looks horrible. Am I doing something wrong:? I thought if you had a blog page then the wordrpress blog would appear on that page. Sort of like an ifframe solution.
画像の固定

添付ファイル: screenshot.png (12.1k)
Juan Fernández
RE: Wordpress Importer 1.2 released!
2014/01/12 23:45
答え

Juan Fernández

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1262

参加年月日: 2008/10/02

最近の投稿

Hi Gordon:

it is not an iFrame like solution. Let me explain how it works. The Wordpress importer imports the content (basically text, images, tages, categories and comments) from Wordpress to Liferay by recreating them inside Liferay. Once the content is in Liferay you can format, edit and show it wherever you want: in several pages, in different portlets...

Regarding the pages that appear in the navigation, that is a recreation of your friend's blog pages. In Wordpress there are two kind of pages: content and blog pages. For the content ones I create a web content display (which is what you see in the screenshot). For the blogs, I create a blog entry in Liferay (check the blog portlet to see all the imported entries).

I agree that if you see only the content, it looks ugly, but that is because no theme or appeareance improvements are applied to the page. A full migration would include creating a theme that replicates the appeareance of the original Wordpress site in Liferay.

The screenshot is not clear enough, but I suspect there are character encoding errors in the text. If that's the case, I'll need you to send me the XML file to further analyze it.

I hope I helped you. In case you keep finding weird stuff or something you consider a bug, please let me know and I'll do my best to fix it for you.

Thanks a lot for your feedback!
Juan
gordon daniels
RE: Wordpress Importer 1.2 released!
2014/01/13 5:04
答え

gordon daniels

ランク: Liferay Master

投稿: 723

参加年月日: 2008/08/23

最近の投稿

Juan: Thanks for the reply. Now I understand, that makes all the difference. Just one question: I don't want the import of the blog to add page tabs to the navigation bar., is that possible?

thanks again
Juan Fernández
RE: Wordpress Importer 1.2 released!
2014/01/13 5:08
答え

Juan Fernández

LIFERAY STAFF

ランク: Liferay Legend

投稿: 1262

参加年月日: 2008/10/02

最近の投稿

Hi Gordon:
Yes, there's a way. In the configuration view there's an option called "Import Pages" which is checked by default.
You can uncheck it to avoid generating the pages in your site.

Tell me if it works or you find any issues
Best,
Juan
該当件数: 39 件中 1 - 20
/ 2