Forums / Developer / new class with "object relation" typed attributes

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

new class with "object relation" typed attributes

Author Message

aurelie aurelie

Wednesday 28 July 2004 1:44:30 am

I've created a new class called "foo". This class has some "object relation" typed attributes, linked to other objects "bar". When I define this attribute, I need to set a "Location" in the CONTENT part of the site. But this class is aimed to be used at any location in the website, depending on the writers humors :-)
The problem is, that when I edit an object whose type is "foo", I can add some "bar" objects but they don't appear as CHILDREN in the website.
So I can't see them in the lists !!!

Please give me tips to understand:
- why do I have to mix some structure elements (classes) and content tree when declaring an "object relation" attribute?
- why newly created "bar" objects are not automatically defined as children of the current object when I create them with the "foo" content editor while they are well defined as children when I create them by clicking on the "create here" button on a "foo" object view ?

Thanks for your help !