eZ Community » Forums » Setup & design » Manual insert of articles in the...
expandshrink

Manual insert of articles in the database

Manual insert of articles in the database

Wednesday 15 October 2014 1:04:43 pm - 4 replies

Hi,

I need to insert 10000 articles in a old site. Is it possible to make a script to insert automaticaly this articles or may I rewrite them with the front of the site? If it is possible to do this, how? 

Thanx for your help.

Wednesday 15 October 2014 1:29:05 pm

There is a data import extension you can use: https://github.com/mugoweb/data_import

There are some example scripts to help you get started.

Wednesday 15 October 2014 7:47:16 pm

Hello Josep,

First the number of articles should not matter.

What format are your articles in? More information on your requirements would help us all make good recommendations.

I imported over 100,000 html formatted articles in csv format into eZ Publish Article content objects using this solution a few years ago, https://github.com/brookinsconsulting/bcimportcsv

My solution converted html of the articles into ezxmltext required by eZ Publish with ease.

I hope this helps!

Cheers,
Heath

Thursday 16 October 2014 11:37:17 am

Quote from // Heath :

Hello Josep,

First the number of articles should not matter.

What format are your articles in? More information on your requirements would help us all make good recommendations.

I imported over 100,000 html formatted articles in csv format into eZ Publish Article content objects using this solution a few years ago, https://github.com/brookinsconsulting/bcimportcsv

My solution converted html of the articles into ezxmltext required by eZ Publish with ease.

I hope this helps!

Cheers,
Heath

Hi.

My source database is Access and I want to view them in EZPublish from a search option (not in a visible tree). 

Thanks in advance.

Josep.

Friday 17 October 2014 3:30:16 am

Hello Josep,

Are you using eZ Find for search or the default php search engine?

I think what you want to do is possible (in some form or another) but how you go about it will depend on how search is configured in your site. 

Here are some references you prolly want to read up on (in short; eZ find is the best way to go, php search would prolly mean a custom module view needs to be created):

http://share.ez.no/forums/developer/separate-database-for-custom-objects

http://share.ez.no/forums/developer/using-external-db-in-extension-causes-problems

http://share.ez.no/forums/developer/indexing-external-database-content

http://share.ez.no/forums/develop...ind-adding-extra-information-in-solr

http://www.slideshare.net/paulbor...aking-ez-find-beyond-fulltext-search

 

Cheers,
Heath

Modified on Friday 17 October 2014 5:08:27 am by // Heath

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from