Default Country

Author Message

Nebojsa Eric

Friday 25 August 2006 2:11:00 am

While registering user it is posible to specify a country. I want to default some country. Logic loops through the available attributes and I don't know where to put "selected" tag.

{section name=ContentObjectAttribute loop=$content_attributes sequence=array(bglight,bgdark)}
<input type="hidden" name="ContentObjectAttribute_id[]" value="{$ContentObjectAttribute:item.id}" />
<div class="block">
<p class="bodystyle"><strong>{$ContentObjectAttribute:item.contentclass_attribute.name}</strong><br>
{attribute_edit_gui attribute=$ContentObjectAttribute:item}</p>
</div>
{/section}

Nebojsa Eric

Friday 25 August 2006 2:22:49 am

Solved.

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:02:45
Script start
Timing: Jan 18 2025 16:02:45
Module start 'layout'
Timing: Jan 18 2025 16:02:45
Module start 'content'
Timing: Jan 18 2025 16:02:46
Module end 'content'
Timing: Jan 18 2025 16:02:46
Script end

Main resources:

Total runtime0.7960 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.0058 587.7813152.6094
Module start 'layout' 0.00580.0027 740.390639.3984
Module start 'content' 0.00850.7859 779.7891457.6016
Module end 'content' 0.79440.0016 1,237.39068.2031
Script end 0.7960  1,245.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4193160.0002
Check MTime0.00140.1777160.0001
Mysql Total
Database connection0.00070.082410.0007
Mysqli_queries0.750394.2565520.0144
Looping result0.00050.0621500.0000
Template Total0.759495.420.3797
Template load0.00210.261120.0010
Template processing0.757395.134520.3786
Template load and register function0.00010.010710.0001
states
state_id_array0.00110.136710.0011
state_identifier_array0.00250.311820.0012
Override
Cache load0.00170.2104150.0001
Sytem overhead
Fetch class attribute can translate value0.00080.095610.0008
Fetch class attribute name0.00110.132530.0004
XML
Image XML parsing0.00070.081910.0007
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00190.2342160.0001
String conversion0.00000.001040.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
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: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs