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.