Forums / Developer / Multiple Checkbox

Multiple Checkbox

Author Message

Mahesh Arvind

Friday 23 January 2004 4:23:59 am

Hi,

I have a Enum field identified by identifier language_fields. Inside this, I have a multiple checkbox with three enum elements. I need to check if the first checkbox is clicked or not. Can anyone tell me how to get this value?

Thanks.
Mahesh

Thanks & Regards
Mahesh

Eirik Alfstad Johansen

Tuesday 27 January 2004 1:26:28 am

Hi,

Have you tried using {$node.data_map.language_fields|attribute(show)} in your template to see which values the field contains? Chances are you can probably do something like $node.data_map.language_fields[0].

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Mahesh Arvind

Tuesday 27 January 2004 7:37:12 am

Thanks Eirik for the reply. I will check that.

Thanks & Regards
Mahesh

eZ debug

Timing: Jan 18 2025 19:31:38
Script start
Timing: Jan 18 2025 19:31:38
Module start 'content'
Timing: Jan 18 2025 19:31:38
Module end 'content'
Timing: Jan 18 2025 19:31:38
Script end

Main resources:

Total runtime0.0136 sec
Peak memory usage2,048.0000 KB
Database Queries4

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.2422180.8438
Module start 'content' 0.00540.0037 770.085993.8359
Module end 'content' 0.00910.0044 863.921970.7031
Script end 0.0135  934.6250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002316.7352120.0002
Check MTime0.00118.3131120.0001
Mysql Total
Database connection0.00064.706210.0006
Mysqli_queries0.003021.978740.0007
Looping result0.00000.101920.0000
Template Total0.004130.210.0041
Template load0.00085.884510.0008
Template processing0.003324.240510.0033
Override
Cache load0.00064.116210.0006
General
dbfile0.00032.0265100.0000
String conversion0.00000.045730.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

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

Time used to render debug report: 0.0003 secs