I'm currently working on an employment site where the candidates create a "candidate profile" and the employers create "job listings". I created objects with my module by simply posting the appropriate variables to /content/action. Because ezpub makes you create and object then a new version of that object and then edit that new version, I felt it was more trouble than it was worth trying to reinvent that process.
I'm beginning to think that I'm going to create the edit form on my own, try to built it in a "generic" way so that it will be compatible with every datatype and use the eZContentFunctions::createAndPublishObject() to create my object ...
I'm beginning to think that I'm going to create the edit form on my own, try to built it in a "generic" way so that it will be compatible with every datatype and use the eZContentFunctions::createAndPublishObject() to create my object ...
Yes but I don't want to have to post something to content/action because I want this edit form to be after user/register so I made a redirection using a RedirectAfterUserRegister input to a custom module ...
By the way, it's a template function not an operator (this is not exactly the same :))
I have no time right know so I choose to use the createAndPublishObject() but maybe later I'll begin to implement the template function ( :D right it's not exactly the same).