Width of string in forms

Author Message

J-A Eberhard

Tuesday 01 March 2005 6:12:58 am

I need to understand how to pass from a form template a value for the width of an text inpuit field.

The template used is design/base/override/template/edit/eztext.tpl

On the top of it I have this line
"{default attribute_base='ContentObjectAttribute' html_class='full'}"
Then it uses
"<input class="{eq( $html_class, 'half' )|choose( 'box', 'halfbox' )}" type="text" size="70" "

So, I need, from the template of the form to assign a value to html_class in order to have some fields as box and some as halfbox.

Any experimented form designer around?

Thanks
Jacques-André

How can I assign a value to override

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Łukasz Serwatka

Tuesday 01 March 2005 12:06:56 pm

Hi,

You can assign value to html_class using this code. html_class is a parameter of attribute_edit_gui. I hope it will help.

{attribute_edit_gui attribute=$node.object.data_map.your_attribute html_class=full/half}

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

J-A Eberhard

Wednesday 02 March 2005 12:15:13 am

Thanks, it does help...

Open Source Solution Provider
Open-Net Ltd Switzerland
http://www.open-net.ch

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.