Forums / Developer / How do I use the customObjectAttributeHTTPAction to run a custom action from a new datatype as an extension.

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

How do I use the customObjectAttributeHTTPAction to run a custom action from a new datatype as an extension.

Author Message

Stuart Fenton

Friday 12 November 2004 2:46:28 am

I have written some code to run under customObjectAttributeHTTPAction but I am unsure how to get it to run.

The code will be used from the user side of the site not the admin side and it will get used to calculate the price of an item prior to it being added to the basket. It's a simple "Update Prices" button that calculates all the options added before adding it to the basket.

Is there a setting I am suppose to add to the ini files?

I know I can create a custom action using code stored in actions/content_actionhandler.php but I would rather it was self contained in the object itself.

I know that I can add code to the "content.ini.append.php" stored in the exntention settings like:

[ActionSettings]
ExtensionDirectories[]=ezcalculateoption

But that is outside of the object itself.

How do I do this? Any ideas.

Any help is greatly appreciated.

-- Stuart

stuart@grandmore.com
http://www.grandmore.com