Forums / Setup & design / creating a new class when publishing an article

"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".

creating a new class when publishing an article

Author Message

Hugo Siles

Thursday 06 May 2004 7:05:53 am

Hi all...
I have this problem, i don't know how to solve it, I have extended the article class and added an object relation list to it, what i want to do is create a new object in this relation list when the publish button is pressed...
So far, i have done this, but the problem is that when you press the publish button it is created a new object but with empty attributes.. is there a way to create the object but with certain values for the attributes???

I don't know if I'm being clear in this stuff, but any idea or comment would be apreciated

Thanks and regards

Hugo Siles

Bjørn Kaarstein

Tuesday 11 May 2004 6:47:42 am

Don't know if I get you right, but you could assign default values in the class setup.

Regards Bjørn