validate attribute workflow?

Author Message

Mads Ovesen

Friday 08 October 2010 1:05:37 am

Hi,

I would like to make some functionality that validates one attribute dependent on another attribute in an object during creation/editing on this particular object (ie. before publish). I thought about doing it with a workflow, but I can see some problems in this type of solution. Is it doable with a custom edit handler?? Does anyone have experience with this?

Thanks in advance

/mads

/m

Frédéric DAVID

Friday 08 October 2010 2:02:28 am

Hello,

you can use a content edit handler to validate some datas.

You can fine an example here http://www.llaumgui.com/post/ez-publish-%3A-rajouter-des-controles-sur-les-donnees-via-les-content-edit-handler

Regards

Blog : http://www.frefred.fr/blog/ez-publish
feZ Meta Data : http://projects.ez.no/fezmetadata

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 05:22:35
Script start
Timing: Jan 18 2025 05:22:35
Module start 'layout'
Timing: Jan 18 2025 05:22:35
Module start 'content'
Timing: Jan 18 2025 05:22:35
Module end 'content'
Timing: Jan 18 2025 05:22:35
Script end

Main resources:

Total runtime0.8604 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.9063152.6250
Module start 'layout' 0.00550.0033 740.531339.4531
Module start 'content' 0.00880.8503 779.9844520.8359
Module end 'content' 0.85910.0012 1,300.82038.3203
Script end 0.8603  1,309.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3551160.0002
Check MTime0.00130.1469160.0001
Mysql Total
Database connection0.00120.139910.0012
Mysqli_queries0.817995.0632550.0149
Looping result0.00050.0577530.0000
Template Total0.831996.720.4159
Template load0.00200.235220.0010
Template processing0.829896.451820.4149
Template load and register function0.00010.015910.0001
states
state_id_array0.00090.100010.0009
state_identifier_array0.00100.116720.0005
Override
Cache load0.00160.1899140.0001
Sytem overhead
Fetch class attribute can translate value0.00050.060620.0003
Fetch class attribute name0.00140.158330.0005
XML
Image XML parsing0.00070.084020.0004
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00150.1711160.0001
String conversion0.00000.001140.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs