Site Structure Import

Author Message

Josh Thomas

Tuesday 19 June 2007 1:58:14 am

I want to enable eZ to basically build the site structure from an external xml file. This includes container names and hierarchy in the tree menu, any navbar associated with the tree menu, as well as automatically create article objects in each container based on a template. The end goal for this routine is to have 50% of the site content pre-created (in cases where such pre-creation is beneficial), save some user input for each article object.

Is there anything already out there apart from the ezdocumentation that may help?

Any other suggestions on where to start?

Thanks!

Josh Thomas

Tuesday 19 June 2007 3:01:28 pm

I guess maybe I would be better off coming up with an automated way to create an eztemplate based on an xml file. Am I on the right track? Has anyone done anything similar?

Ɓukasz Serwatka

Tuesday 19 June 2007 11:40:21 pm

Do need those content as content objects in eZ Publish? There are some contributions that can handle import for you. Check contrib section. You can of course write your own PHP import script that parse that external XML and creates content objects in eZ Publish. Check ez.no forum for PHP import script examples also book http://www.packtpub.com/book/ezpublish might be useful.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Xavier Dutoit

Tuesday 19 June 2007 11:43:07 pm

Hi,

http://ez.no/community/contribs/import_export/easy_administration/ contains a load module view.

/easyadmin/load/<nodeid>
or if you know the class :
/easyadmin/load/<nodeid>/(class)/<classid>

You could easily extend it so it does it in more than one level.

X+

http://www.sydesy.com

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.