Class creation through ezwebin

Author Message

Pascal Specht

Friday 19 October 2007 7:10:20 am

Hello,

Can someone shed some light on this? I don't get the picture yet:

In the ezwebin interface, I can create new classes. (Administration->Classes->Create new class)

Let's say I would create a new class called TimeSpan: I would add two Date members to it, through the dropdown box at the bottom.
(the one that lets you choose Article, Folder,... etc)

But once I'm finished with this and save my work, I don't know how to walk further:

I don't know what to do so that this new class would also be selectable in that dropdown box I'm speaking about, so that I could use my class as attributes in other classes... Example would be to add a new member of type TimeStamp to the Product class... But TimeStamp does not show up in the drop-down selection.

I don't understand where to declare and put a template tpl file for this class. I tried to use the override.ini file, but that didn't work. I posted a question about this previously and didn't get much answers so far.

Is it possible to do this kind of things through the admin interface, or do I need to program an extension ??

Thanks in advance,

</Pascal>

Pascal Specht

Monday 22 October 2007 5:49:27 am

nobody has an idea?...

André R.

Monday 22 October 2007 7:20:22 am

You seem to mix datatypes (the different attributes on classes) and classes.

Start here and also look at the 'The content class' and 'Class attributes' pages:
http://ez.no/doc/ez_publish/technical_manual/3_10/concepts_and_basics/content_management/datatypes

For a tutorial on how to create new classes, templates and overrides:
http://ez.no/ezpublish/documentation/building_an_ez_publish_site
Especially the 'the guestbook' section!

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Pascal Specht

Wednesday 24 October 2007 3:01:19 am

Thanks André,

Well I thought that the classes built through the Admin interface would be able to act as Datatypes themselves, which obviously is not the case...

As for the second question, I'm going to look at the tutorial you pointed at : I must have missed something with the template creation...

</Pascal>

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