Creating Content Classes from PHP?

Author Message

Dan C

Wednesday 23 February 2005 1:07:10 pm

Hi,

I was wondering if anyone knows a way to create content classes from php or something similar? Sometimes I need to create checkboxes or dropdown lists that contain 15-20 options and click 'add item' 20 times in the browser, waiting for it to load is a huge pain in the neck. These lists wont be used more than once so theres no reason to create new datatypes for them.

It would be nice if there was a manual way to create them either by php, db manipulation, or xml import. I've tried searching and haven't been able to find any topics on this.

Anybody have any solutions?

Thanks,

Dan

Kristian Hole

Friday 25 February 2005 12:24:45 am

I think this is described how to do this in PHP in the eZ publish book. Unfortunately I don't have the book here right now, but maybe someone else do?

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Olivier Pierret

Friday 25 February 2005 2:43:45 am

Hello,

I uploaded a code extension in the contrib section of this site that allow you to upload an xml file into EZ Publish. This xml file contains a list of object value (each attribute value of each object is provided. This xml is parsed and a series of new EZ Content objects are created and published in a specific node.

This may help you

Olivier Pierret

PS you can find this contribution at http://www.ez.no/community/contribs/import_export

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