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"

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 19:24:22
Script start
Timing: Jan 18 2025 19:24:22
Module start 'layout'
Timing: Jan 18 2025 19:24:22
Module start 'content'
Timing: Jan 18 2025 19:24:22
Module end 'content'
Timing: Jan 18 2025 19:24:22
Script end

Main resources:

Total runtime0.0183 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.0703152.6250
Module start 'layout' 0.00660.0031 741.695339.4453
Module start 'content' 0.00970.0058 781.140693.3672
Module end 'content' 0.01550.0028 874.507838.3047
Script end 0.0183  912.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003016.1949140.0002
Check MTime0.00137.1821140.0001
Mysql Total
Database connection0.00074.041610.0007
Mysqli_queries0.003217.503530.0011
Looping result0.00000.141910.0000
Template Total0.002312.610.0023
Template load0.00126.684710.0012
Template processing0.00105.679510.0010
Override
Cache load0.00105.197810.0010
General
dbfile0.00021.364580.0000
String conversion0.00000.059940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0006 secs