Relating to different classes

Author Message

Rinze Cats

Monday 05 April 2004 8:46:10 am

Hello,

I have created a custom article class. I want to add a field to this class, allowing a user to select a value from a dropdown box when creating an instance of this class.

The available values in the dropdownbox however, are not static. I want the dropdownbox to provide a list of all instances of a certain class. Is this possible? It is for a purely administrative use to relate various articles by means of an edition number (and maybe add some extra information besides the edition number).

I don't want to change the class definition everytime a new edition is necessary!

thanx and greetz
rinze

Rinze Cats

Wednesday 07 April 2004 2:24:13 am

In addition, is it possible to embed a class in another class, or to create custom datatypes?

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 19:20:59
Script start
Timing: Jan 18 2025 19:20:59
Module start 'layout'
Timing: Jan 18 2025 19:20:59
Module start 'content'
Timing: Jan 18 2025 19:21:00
Module end 'content'
Timing: Jan 18 2025 19:21:00
Script end

Main resources:

Total runtime0.7148 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0108 589.0391152.6250
Module start 'layout' 0.01080.0052 741.664139.4453
Module start 'content' 0.01600.6971 781.1094423.2734
Module end 'content' 0.71310.0017 1,204.38288.1641
Script end 0.7148  1,212.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5655160.0003
Check MTime0.00150.2167160.0001
Mysql Total
Database connection0.00320.451010.0032
Mysqli_queries0.655891.7404520.0126
Looping result0.00090.1209500.0000
Template Total0.658292.120.3291
Template load0.00300.425620.0015
Template processing0.655291.657720.3276
Template load and register function0.00010.020310.0001
states
state_id_array0.00140.191110.0014
state_identifier_array0.00100.141620.0005
Override
Cache load0.00250.3563110.0002
Sytem overhead
Fetch class attribute can translate value0.00350.484310.0035
Fetch class attribute name0.00240.329020.0012
XML
Image XML parsing0.00010.016110.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00110.1491100.0001
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
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/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs