How to set attributes after submit?

Author Message

Ivo Lukac

Friday 06 May 2005 5:53:51 am

Hello everybody!

I am using eZ for one week now :) so there are a lot of stuff that I don't no about eZ. Maybe the solution to my problem is very simple, don't no.

The problem: I created a custom class with an enum attribute. After user saves new object the selected value of enum attribute must be stored into another attribute.

What is the simplest way to do it?

Thanks for any help.

Ivo

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Xavier Dutoit

Monday 09 May 2005 9:14:25 am

The simpler is probably some javascript and onsubmit+ custom edit form.

On the server side, use a workflow with a custom event on the publish before trigger. Not that complicated, but a pain to debug.

X+

http://www.sydesy.com

Ivo Lukac

Tuesday 10 May 2005 5:04:09 am

Yes, javascript method is probably the simplest way but I am searching for "eZ" way :)
This custom event could do the trick.

Thanks,
Ivo

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

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

eZ debug

Timing: Jan 18 2025 22:37:52
Script start
Timing: Jan 18 2025 22:37:52
Module start 'layout'
Timing: Jan 18 2025 22:37:52
Module start 'content'
Timing: Jan 18 2025 22:37:52
Module end 'content'
Timing: Jan 18 2025 22:37:52
Script end

Main resources:

Total runtime0.8320 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.0156152.6250
Module start 'layout' 0.00670.0044 740.640639.4453
Module start 'content' 0.01110.8196 780.0859541.2266
Module end 'content' 0.83070.0013 1,321.312512.1563
Script end 0.8320  1,333.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4079160.0002
Check MTime0.00130.1582160.0001
Mysql Total
Database connection0.00120.145210.0012
Mysqli_queries0.782093.9837570.0137
Looping result0.00060.0683550.0000
Template Total0.796995.820.3984
Template load0.00240.283120.0012
Template processing0.794595.491620.3973
Template load and register function0.00010.012310.0001
states
state_id_array0.00110.133910.0011
state_identifier_array0.00150.180520.0008
Override
Cache load0.00200.2389210.0001
Sytem overhead
Fetch class attribute can translate value0.00060.076620.0003
Fetch class attribute name0.00090.108850.0002
XML
Image XML parsing0.00100.117520.0005
class_abstraction
Instantiating content class attribute0.00000.001660.0000
General
dbfile0.00090.1035230.0000
String conversion0.00000.001340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs