Template handling checkbox in form

Author Message

Pascal France

Sunday 22 January 2006 6:17:16 am

Hi,

My form is here:
http://www.linuxorable.net/monsite2/index.php/monsite2/formulaires/formulaire_d_adhesion

I found which template handle the radio buton and drop down menu (it's the same template) but not at all which one handle the checkbox option.

In the source code of my form, I can find lines like that for each checkbox

<div class="block">
        <label>Activités sportives</label>
    	<p class="box"><input type="checkbox" name="ContentObjectAttribute_data_boolean_781"  /></p>
    </div>

but when I do

grep -R "ContentObjectAttribute_data_boolean" *

the results returned concern only templates in var/plain/cache/...

Is there someone who can help me ?

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Łukasz Serwatka

Sunday 22 January 2006 11:48:18 pm

Hi,

What exactly you want to do?

If you want to override some information collector datatypes templates look in to:
design/standard/templates/content/datatype/collect

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Pascal France

Monday 23 January 2006 4:04:25 am

Hi,

In fact I'm looking for how to display the checkbox on the left of the option.

I found that the display of the form is handled by design/plain/override/templates/full_form.tpl:

    66     {section name=ContentObjectAttribute loop=$content_version.contentobject_attributes}
    67     <div class="block">
    68         <label>{$ContentObjectAttribute:item.contentclass_attribute.name|wash}</label>
    69         <p class="box">{attribute_view_gui attribute=$ContentObjectAttribute:item}</p>
    70     </div>
    71     {/section}

but I don't know how to change these lines for my purpose.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

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 19 2025 06:16:12
Script start
Timing: Jan 19 2025 06:16:12
Module start 'layout'
Timing: Jan 19 2025 06:16:12
Module start 'content'
Timing: Jan 19 2025 06:16:13
Module end 'content'
Timing: Jan 19 2025 06:16:13
Script end

Main resources:

Total runtime1.1661 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 590.3906152.6250
Module start 'layout' 0.00640.0031 743.015639.4453
Module start 'content' 0.00951.1554 782.4609540.8984
Module end 'content' 1.16480.0012 1,323.359412.1563
Script end 1.1661  1,335.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2706160.0002
Check MTime0.00130.1144160.0001
Mysql Total
Database connection0.00080.065310.0008
Mysqli_queries1.118895.9435570.0196
Looping result0.00050.0405550.0000
Template Total1.130697.020.5653
Template load0.00190.159720.0009
Template processing1.128796.796620.5644
Template load and register function0.00010.010710.0001
states
state_id_array0.00150.130210.0015
state_identifier_array0.00120.100920.0006
Override
Cache load0.00160.1350270.0001
Sytem overhead
Fetch class attribute can translate value0.00040.037220.0002
Fetch class attribute name0.00110.092340.0003
XML
Image XML parsing0.00070.056720.0003
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00080.0647180.0000
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs