Forums / Setup & design / [Solved] ezselection displayed as radio buttons

[Solved] ezselection displayed as radio buttons

Author Message

Antoine Schmid

Thursday 09 March 2006 12:34:46 am

Hello,

In my form for creating a new user, I'd like to display a selection datatype with radio buttons.
But when my user is created, I can't find any of the values of this type. Here is an example of my code :

<input type="hidden" name="ContentObjectAttribute_id[]" value="{$content_attributes[0].id}" 

<input type="radio" value="0" checked="checked" id="wf_Individuel" name="ContentObjectAttribute_ezselect_selected_array_{$content_attributes[0].id}"/>
<label for="wf_Individuel" class="postField">Individuel</label>

<input type="radio" value="1" id="wf_Entreprise" name="ContentObjectAttribute_ezselect_selected_array_{$content_attributes[0].id}"/>
<label for="wf_Entreprise" class="postField">Entreprise</label>

<input type="radio" value="2" id="wf_Etudiant" name="ContentObjectAttribute_ezselect_selected_array_{$content_attributes[0].id}"/>
<label for="wf_Etudiant" class="postField">Etudiant</label>

Anyone can help me ?

I've a problem too with the dates : and it's quite the same ! I've tried to diplay the dates as selections and in this case too, nothing appears at the end of the creation...
Here is a part of my code:

<input type="hidden" name="ContentObjectAttribute_id[]" value="{$content_attributes[14].id}" />
<label for="wf_Datedefindescours3" id="wf_Datedefindescours3-L">Date:</label>
 <select id="wf_Datefindescour_jour3" name="ContentObjectAttribute_date_day_{$content_attributes[14].id}" class="required">
		<option value=""></option>
		<option value="01">01</option>
		<option value="02">02</option>
		<option value="03">03</option>
		.......
</select>/<select name="ContentObjectAttribute_date_month_{$content_attributes[14].id}" id="wf_Datefindescour_mois3">
		<option value=""></option>
		<option value="01">January</option>
		.......
</select>/<select name="ContentObjectAttribute_date_year_{$content_attributes[14].id}" id="wf_Datefindescour_annee3">
		<option value=""></option>
		<option value="2002">2002</option>
		<option value="2003">2003</option>
		.......
</select>

The same as before, nothing...
I would be glad to have some help.

Thanks

Antoine

Nabil Alimi

Thursday 09 March 2006 8:46:58 am

Hi Antoine,

Where is your $content_attributes variable defined ?

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Antoine Schmid

Friday 10 March 2006 1:34:27 am

Well...
That's a good question !

This code is inside an override of the user/register.tpl and the variable is accessible. But this is not the problem because it works with the other fields of the form (email, password, etc.)

In fact, it is as if the system was not able to read the content of the value="whatever" of the input.

Any idea ?

Antoine

Antoine Schmid

Wednesday 15 March 2006 5:08:51 am

The dates work ! I made a mistake.

But the radios buttons still don't work... As someone tried to do the same ?

Antoine Schmid

Wednesday 15 March 2006 5:19:46 am

IT WORKS !!!

"[]" was missing at the end of the name...

<input type="radio" value="1" id="privee1" name="ContentObjectAttribute_ezselect_selected_array_{$content_attributes[19].id}[]"/>

and not

<input type="radio" value="1" id="privee1" name="ContentObjectAttribute_ezselect_selected_array_{$content_attributes[19].id}"/>

Antoine

eZ debug

Timing: Jan 18 2025 11:04:34
Script start
Timing: Jan 18 2025 11:04:34
Module start 'content'
Timing: Jan 18 2025 11:04:35
Module end 'content'
Timing: Jan 18 2025 11:04:35
Script end

Main resources:

Total runtime1.1598 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.9609180.8125
Module start 'content' 0.00590.9488 769.7734570.7422
Module end 'content' 0.95460.2051 1,340.5156337.3672
Script end 1.1598  1,677.8828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.3709210.0002
Check MTime0.00160.1403210.0001
Mysql Total
Database connection0.00080.070110.0008
Mysqli_queries1.047890.34122000.0052
Looping result0.00250.21481980.0000
Template Total1.125097.020.5625
Template load0.00210.183120.0011
Template processing1.122996.816220.5614
Template load and register function0.00020.015110.0002
states
state_id_array0.00190.164110.0019
state_identifier_array0.00290.253020.0015
Override
Cache load0.00180.1539360.0000
Sytem overhead
Fetch class attribute can translate value0.00180.156230.0006
Fetch class attribute name0.00140.118460.0002
XML
Image XML parsing0.00100.088130.0003
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.02892.4901270.0011
String conversion0.00000.000430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs