Forums / Developer / how to make radio buttons "Yes" and "No"?

how to make radio buttons "Yes" and "No"?

Author Message

Vytautas Germanavičius

Tuesday 16 August 2005 6:06:31 am

According law i have to get permition from user to write emails with advetisements to him.
For this, i want to change class User, by adding question "Do you want to get more info?" with two pssible anwers "yes" and "no".
Possible answers should be displayed in registration page as radio buttons.

I do not understand, which datatype i should use?

{set-block scope=root variable=cache_ttl}0{/set-block}

K259

Tuesday 16 August 2005 6:10:41 am

Selection.
Or you can also use enum and use it as option button, but the enum is slower.

Vytautas Germanavičius

Tuesday 16 August 2005 11:01:56 pm

but selection is displayed as combobox. And i need radio button and only for this case.
Should i override template?

{set-block scope=root variable=cache_ttl}0{/set-block}

David Eriksson

Wednesday 17 August 2005 4:51:01 am

Can't you choose if selection should be displayed as drop-down or radio buttons?

/David

bisk

Wednesday 17 August 2005 8:26:24 am

Try the option datatype, I use it as well in my contact form and it has radio buttons.

-------------------------------
http://www.kookfijn.nl & http://www.magento.be

Vytautas Germanavičius

Friday 19 August 2005 3:52:31 am

i'm using ez 3.6.1.

Selection is displayed as combobox. And it is not possible to choow way of displaying.

option do not allow to enter anything except name in admininstration page.

I found that it is possible to choose way of displaying in Enum class. But this type is deprecated. Also i do not find way to display both: name and value of option.

Another example, I need to meke folloving:
choose your zodiac:
Option name: Cancer
Option value: images/zodiac-cancer.gif

Problem, that i can get only word "Cancer", but no way to get name of image.
With english it's no problem, but in lithuanian zodiac names has utf-8 symbols, which i cannot use for filenames.


{set-block scope=root variable=cache_ttl}0{/set-block}

Alexander Kononenko

Tuesday 05 December 2006 3:52:50 pm

I'm using 3.8.0 and got same: "selection is displayed as combobox"

eZ debug

Timing: Jan 18 2025 19:37:32
Script start
Timing: Jan 18 2025 19:37:32
Module start 'content'
Timing: Jan 18 2025 19:37:34
Module end 'content'
Timing: Jan 18 2025 19:37:34
Script end

Main resources:

Total runtime1.8604 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 587.7344180.8281
Module start 'content' 0.00751.6254 768.5625681.7344
Module end 'content' 1.63290.2274 1,450.2969336.4453
Script end 1.8604  1,786.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.2168210.0002
Check MTime0.00150.0808210.0001
Mysql Total
Database connection0.00090.048410.0009
Mysqli_queries1.776295.47352120.0084
Looping result0.00250.13222100.0000
Template Total1.828698.320.9143
Template load0.00200.107520.0010
Template processing1.826698.180520.9133
Template load and register function0.00010.005410.0001
states
state_id_array0.00120.065210.0012
state_identifier_array0.00150.079120.0007
Override
Cache load0.00170.0914350.0000
Sytem overhead
Fetch class attribute can translate value0.00150.080560.0002
Fetch class attribute name0.00160.083780.0002
XML
Image XML parsing0.00120.065360.0002
class_abstraction
Instantiating content class attribute0.00000.0012100.0000
General
dbfile0.00430.2320270.0002
String conversion0.00000.000330.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 28
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs