Problem with a new food class

Author Message

Shurbann Martes

Tuesday 16 September 2003 7:53:56 am

Hi,

I'm working on a food class, where someone can put his own recipe. Now the problem is how to make sure that I have enough places for someone to put all the ingredients?

For example:
If i decided to put only 3 lines textline and someone has a recipe with 4 ingredients, there is a problem.

I'm thinking of making an two pages; the first one with the option to enter how many ingredients the recipe consist of and then click continue to enter the ingredients. Is this a good solution and how can I accomplish this?

Paul Borgermans

Tuesday 16 September 2003 8:58:57 am

Since I'm hungry: use the matrix datatype (ezp3.2) for ingredients. By default, the interface allows to add rows to such objects.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 16:26:39
Script start
Timing: Jan 18 2025 16:26:39
Module start 'layout'
Timing: Jan 18 2025 16:26:39
Module start 'content'
Timing: Jan 18 2025 16:26:40
Module end 'content'
Timing: Jan 18 2025 16:26:40
Script end

Main resources:

Total runtime0.5960 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0056 587.9063152.6250
Module start 'layout' 0.00560.0028 740.531339.4453
Module start 'content' 0.00840.5860 779.9766522.2266
Module end 'content' 0.59440.0015 1,302.20318.3203
Script end 0.5959  1,310.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5513160.0002
Check MTime0.00130.2218160.0001
Mysql Total
Database connection0.00080.129910.0008
Mysqli_queries0.551792.5786540.0102
Looping result0.00070.1120520.0000
Template Total0.564394.720.2822
Template load0.00210.344320.0010
Template processing0.562394.346620.2811
Template load and register function0.00020.027510.0002
states
state_id_array0.00120.207210.0012
state_identifier_array0.00110.179220.0005
Override
Cache load0.00170.2797120.0001
Sytem overhead
Fetch class attribute can translate value0.00070.124320.0004
Fetch class attribute name0.00090.150030.0003
XML
Image XML parsing0.00070.121520.0004
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00080.1372170.0000
String conversion0.00000.001540.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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