modifying ezcountry

Author Message

Dave Dykshoorn

Friday 22 August 2003 1:50:55 pm

I am currently trying to modify the ezcountry datatype which was contributed by Esben Maaløe. Thanks for your work Esben.

What I am trying to do is allow for selecting more than one country.

I think there is something I need to modify in fetchObjectAttributeHTTPInput but am not exactly sure what at this moment. I'll keep working on it but if someone has already done something like this I would love to hear how you did it.

The templates also need modification as well to accept input of more than one and I think I have that working. (by simply adding "multiple" to the end of the <select> )

Ultimately my goal is to create a list datatype that pulls from an ini file but the multiple select is more important than the convenience of an ini file over the list in the template.

Any thoughts?

Dave

Dave Dykshoorn

Friday 22 August 2003 3:19:06 pm

I figured it out... Moving on to the ini part of my question.
I am saving the selected elements as a comma seperated string at the moment because thats the easiest.

If anyone is interested how I did it let me know and I'll see if I can post a cleaned up version.
I changed some tpls and rewrote fetchObjectAttributeHTTPInput.

Dave Dykshoorn

Friday 22 August 2003 5:03:29 pm

hmmm... seems that a comma seperated string is almost good for nothing for what I want to do. Oh well, looks like I'll have lots of work to do next week.

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 20:53:53
Script start
Timing: Jan 18 2025 20:53:53
Module start 'layout'
Timing: Jan 18 2025 20:53:53
Module start 'content'
Timing: Jan 18 2025 20:53:54
Module end 'content'
Timing: Jan 18 2025 20:53:54
Script end

Main resources:

Total runtime0.6052 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.0058 587.8125152.6094
Module start 'layout' 0.00580.0043 740.421939.4141
Module start 'content' 0.01010.5934 779.8359434.3594
Module end 'content' 0.60350.0016 1,214.19538.1875
Script end 0.6052  1,222.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5806160.0002
Check MTime0.00150.2545160.0001
Mysql Total
Database connection0.00100.167510.0010
Mysqli_queries0.558292.2370550.0101
Looping result0.00110.1838530.0000
Template Total0.565993.520.2830
Template load0.00230.377820.0011
Template processing0.563693.127620.2818
Template load and register function0.00020.028610.0002
states
state_id_array0.00140.238610.0014
state_identifier_array0.00080.137320.0004
Override
Cache load0.00190.3117170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.116110.0007
Fetch class attribute name0.00100.172330.0003
XML
Image XML parsing0.00010.020710.0001
class_abstraction
Instantiating content class attribute0.00000.001130.0000
General
dbfile0.00140.2305100.0001
String conversion0.00000.001640.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/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs