Class attribute customization

Author Message

Lo' F.

Wednesday 30 March 2011 3:00:41 am

Hello again!

Is there a way I can customize/create class attributes?

I kind of need to have three of the attributes coming as one - having two selections and one integer.

I also need to have the possibility for the user admin to duplicate the attribute in case he needs, this means this attribute should have something like an add [+] functionality which allows him to add as many as he needs in case the related class object requires more.

Thanks!

loredanaebook.it

Jean-Luc Nguyen

Thursday 31 March 2011 7:57:10 am

Hi,

To create new class attribute datatype, you may read this article: http://phpsolmag.org/fr/magazine/1629-ez-publish-guide-de-developpement (pdf download).

http://www.acidre.com

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 31 2025 00:32:02
Script start
Timing: Jan 31 2025 00:32:02
Module start 'layout'
Timing: Jan 31 2025 00:32:02
Module start 'content'
Timing: Jan 31 2025 00:32:04
Module end 'content'
Timing: Jan 31 2025 00:32:04
Script end

Main resources:

Total runtime1.3755 sec
Peak memory usage8,192.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.1328151.2109
Module start 'layout' 0.00660.0052 739.3438220.6953
Module start 'content' 0.01191.3626 960.03914,433.8125
Module end 'content' 1.37450.0010 5,393.85167.8516
Script end 1.3755  5,401.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3212160.0003
Check MTime0.00170.1271160.0001
Mysql Total
Database connection0.00110.079510.0011
Mysqli_queries1.278992.9755540.0237
Looping result0.00060.0472520.0000
Template Total1.312795.420.6563
Template load0.00250.179520.0012
Template processing1.310295.251320.6551
Template load and register function0.00160.113710.0016
states
state_id_array0.00210.150010.0021
state_identifier_array0.00210.150120.0010
Override
Cache load0.00200.1459130.0002
Sytem overhead
Fetch class attribute can translate value0.00180.132820.0009
Fetch class attribute name0.00230.169540.0006
XML
Image XML parsing0.00370.272420.0019
class_abstraction
Instantiating content class attribute0.00000.000640.0000
General
dbfile0.00490.3595220.0002
String conversion0.00000.000740.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs