Forums / Developer / Is it possible to add eZ Flow blocks via the API?

Is it possible to add eZ Flow blocks via the API?

Author Message

Rainer Krauss

Monday 22 June 2009 2:40:57 am

Hi there,

I wonder if this is possible:

There is an installation of eZ Publish and eZ Flow. We intend to import content to it. Obviously, I'll have to use PHP scripts and the API to do the import - please correct me if I'm wrong here.

Our installation uses articles with eZ Flow blocks. From reading documentation, I know I can add articles via PHP and the API.
Question: Is it possible as well to add blocks to articles via PHP and the API?

Your reply much appreciated!

Sincerely,
Rainer Krauss

Heath

Monday 22 June 2009 3:02:55 am

Hello Rainer,

Yes indeed this is possible.
Importing content can be complicated.
Study the eZ PHP API while creating your script [0,1]

While I've note done so myself I would believe
you could use the very same apis to add blocks to articles.

Seems these apis are located within the ezflow extension [3]

Cheers,
Heath

[0] http://pubsvn.ez.no/doxygen/trunk/html/
[1] http://pubsvn.ez.no/doxygen/trunk/html/classeZContentObjectTreeNode.html
[3] http://svn.ez.no/svn/extensions/ezflow/trunk/packages/ezflow_extension/ezextension/ezflow/classes/ezpageblock.php

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org