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.

eZ debug

Timing: Jan 18 2025 23:01:38
Script start
Timing: Jan 18 2025 23:01:38
Module start 'layout'
Timing: Jan 18 2025 23:01:38
Module start 'content'
Timing: Jan 18 2025 23:01:39
Module end 'content'
Timing: Jan 18 2025 23:01:39
Script end

Main resources:

Total runtime0.9721 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.0056 587.9141152.6250
Module start 'layout' 0.00560.0033 740.539139.4453
Module start 'content' 0.00890.9617 779.9844546.2422
Module end 'content' 0.97060.0014 1,326.226612.1641
Script end 0.9720  1,338.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3523160.0002
Check MTime0.00140.1449160.0001
Mysql Total
Database connection0.00060.061310.0006
Mysqli_queries0.912593.8748570.0160
Looping result0.00060.0580550.0000
Template Total0.925895.220.4629
Template load0.00230.241220.0012
Template processing0.923494.994620.4617
Template load and register function0.00020.021410.0002
states
state_id_array0.00110.115110.0011
state_identifier_array0.00270.273420.0013
Override
Cache load0.00190.1983230.0001
Sytem overhead
Fetch class attribute can translate value0.00070.074120.0004
Fetch class attribute name0.00120.125250.0002
XML
Image XML parsing0.00310.322420.0016
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00770.7893230.0003
String conversion0.00000.001040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 16
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs