Fórumok

Migrating from drupal to liferay 6.2

thumbnail
Melvin Williams, módosítva 10 év-val korábban

Migrating from drupal to liferay 6.2

New Member Bejegyzések: 20 Csatlakozás dátuma: 2013.10.02. Legújabb bejegyzések
We have a intranet solution based on drupal with mysql. I'm trying to migrate to liferay 6.2. In our intranet there are many articles. How can I import the contents into liferay. Extracting the data is not the problem. But I'm facing several problem inserting the data into liferays database wich runs on mysql. Could anyone advise me whats the best method to import the contents.
thumbnail
Victor Zorin, módosítva 10 év-val korábban

RE: Migrating from drupal to liferay 6.2

Liferay Legend Bejegyzések: 1228 Csatlakozás dátuma: 2008.04.14. Legújabb bejegyzések
You cannot use DB to DB migration, must write a custom code. A couple of relevant links below:

Web site WEB CONTENT(e.g. html) migration to Liferay

How to use liferay for Larger Sites

Migrate foreign data

We've got code somewhere for migrating articles from WordPress database into Liferay (6.1), I probably can post it if can find...
thumbnail
Melvin Williams, módosítva 10 év-val korábban

RE: Migrating from drupal to liferay 6.2

New Member Bejegyzések: 20 Csatlakozás dátuma: 2013.10.02. Legújabb bejegyzések
Thanks for the links. I wrote a perl script that extracts the data from drupals DB and inserts it into liferay. But I think it messes with the primary keys. So I guess I must do with Java and the liferay API. What kind of project should I use for that hook, service builder or portlet?
thumbnail
Ravi Kumar Gupta, módosítva 10 év-val korábban

RE: Migrating from drupal to liferay 6.2

Liferay Legend Bejegyzések: 1302 Csatlakozás dátuma: 2009.06.24. Legújabb bejegyzések
A simple portlet should do the job.
thumbnail
Melvin Williams, módosítva 10 év-val korábban

RE: Migrating from drupal to liferay 6.2

New Member Bejegyzések: 20 Csatlakozás dátuma: 2013.10.02. Legújabb bejegyzések
Is it sufficient to create the JournalArticle? Or do I have to create AssetEntries and JournalArticleResources too? What about the keys/ids how are they generated? Can I choose some arbitrary key seed and count up from there?
thumbnail
Ravi Kumar Gupta, módosítva 10 év-val korábban

RE: Migrating from drupal to liferay 6.2

Liferay Legend Bejegyzések: 1302 Csatlakozás dátuma: 2009.06.24. Legújabb bejegyzések
CounterLocalServiceUtil.increment() will give you a new key everytime. And this key will never conflict with any liferay existing keys. You will need permissions as well. You can check the code in tomcat/webapps/root/html/portlet/asset* and Journal* for more info.

Also, go through the links shared by Victor. Those will help you to understand more about the process and problems.
thumbnail
Melvin Williams, módosítva 10 év-val korábban

RE: Migrating from drupal to liferay 6.2

New Member Bejegyzések: 20 Csatlakozás dátuma: 2013.10.02. Legújabb bejegyzések
Thanks a lot for the help. I will try to write a simple importer portlet.
thumbnail
Melvin Williams, módosítva 10 év-val korábban

RE: Migrating from drupal to liferay 6.2

New Member Bejegyzések: 20 Csatlakozás dátuma: 2013.10.02. Legújabb bejegyzések
I just found out that my perl script is working. The only thing I missed was updating the Counter table. Therefore liferay trying to increment ids createt duplicate keys. Now I updated the counter table after succesfull import and everything is working fine.
thumbnail
Juan Gonzalez, módosítva 10 év-val korábban

RE: Migrating from drupal to liferay 6.2

Liferay Legend Bejegyzések: 3089 Csatlakozás dátuma: 2008.10.28. Legújabb bejegyzések
Hi Melvin,

it would be great if you can share that script, so others can do the same task successfully.