Is it possible to alter content from a template?

Is it possible to alter content from a template?

Saturday 30 October 2004 1:44:00 pm - 2 replies

Author Message

Balazs Halasy

Sunday 31 October 2004 2:25:36 am

Hi,

Unfortunately this is not the way eZ publish works. However, it is possible to achieve the stuff you wish to do, I would suggest two possible solutions:

1) Go into edit mode (by calling up /content/edit/object_id) and do it from there (create a special edit template for this case)

2) Write your own template operator or workflow event which takes care of this

Allman

nigel dodd

Monday 01 November 2004 2:00:30 am

Thanks for guidance.

I'm keen to alter content data in the way EzPub was designed. Presumably, then, I should use a form rather than try to do it through the template language.

The <i>Building an eZ publish site</i> tutorial shows how to add an object (guestbook entry class) from frontend interaction. It uses the content module action function (action.php) invoked with the NewButton sumbission. I've looked at the code and there is an equivalent EditButton. I want to edit the attribute value of an existing object. Is this documented only in the PHP file? I cannot find any other documentation.

nigeldodd@blueyonder.co.uk

You must be logged in to post messages in this topic!

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