where modify to have an ezinteger input box smaller?

Author Message

christian bencivenni

Thursday 15 March 2007 9:27:01 am

I'm trying to change the space in the input text box of an integer datatype during the creation of an object.
I searched in the core.css and in the attribute_edit.tpl but I cannot find nothing...
Somene can help me?

Bruce Morrison

Thursday 15 March 2007 4:16:01 pm

Hi Christian

The file you are after is design/standard/templates/content/datatype/edit/ezinteger.tpl

Copy it to your site design design/<i>[my site design]</i>/templates/content/datatype/edit/ezinteger.tpl and modify away

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

christian bencivenni

Thursday 15 March 2007 11:09:52 pm

Hi Bruce.
Thank u for your post.
I don't think your solution is completely right.
I opened /edit/ezinteger.tpl but I think it only contain settings about min and max value of the datatype.
I think (but I'm not sure) that the "lenght" of the text area space is defined in some .css file but I cannot find it. What I cannot understand is if There is a specifically condition for ezinteger datatype or all datatypes inherit from a single definition.
Thanks a lot.

Christian

Bruce Morrison

Thursday 15 March 2007 11:55:42 pm

Hi Christian

I opened /edit/ezinteger.tpl but I think it only contain settings about min and max value of the datatype

In my instalation of eZ 3.8.7 design/standard/templates/<b>content</b>/datatype/edit/ezinteger.tpl contains:

{* DO NOT EDIT THIS FILE! Use an override template instead. *}
{default attribute_base=ContentObjectAttribute}
<input id="ezcoa-{if ne( $attribute_base, 'ContentObjectAttribute' )}{$attribute_base}-{/if}{$attribute.contentclassattribute_id}_{$attribute.contentclass_attribute_identifier}" class="box ezcc-{$attribute.object.content_class.identifier} ezcca-{$attribute.object.content_class.identifier}_{$attribute.contentclass_attribute_identifier}" type="text" name="{$attribute_base}_data_integer_{$attribute.id}" size="10" value="{$attribute.data_int}" />
{/default}

The size is fixed at 10.

design/standard/templates/<b>class</b>/datatype/edit/ezinteger.tpl is the template that is used when editing the class defination and conatins the max & min stuff.

Firebug ( http://www.getfirebug.com/ ) is a fantastic plugin for firefox that (amongst other things) allows you to "inspect" html elements and see the styles that are applied to it, including the file and line number where the style is located. I find it invaluable for working with styles.

Hope this helps

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

christian bencivenni

Friday 16 March 2007 3:15:52 am

...
Ops.
I understand my error.
I use ez3.9rc1 with the ezwebin extension activated.
I watched the ezinteger.tpl of the extension (that override the standard ones) and I didn't find nothing. Now I will try your solutions.
Thank a lot.

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 14:54:52
Script start
Timing: Jan 18 2025 14:54:52
Module start 'layout'
Timing: Jan 18 2025 14:54:52
Module start 'content'
Timing: Jan 18 2025 14:54:54
Module end 'content'
Timing: Jan 18 2025 14:54:54
Script end

Main resources:

Total runtime1.8279 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 589.2969152.6563
Module start 'layout' 0.00690.0033 741.953139.4922
Module start 'content' 0.01021.8160 781.4453562.2188
Module end 'content' 1.82620.0016 1,343.664116.1250
Script end 1.8278  1,359.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.1784160.0002
Check MTime0.00130.0732160.0001
Mysql Total
Database connection0.00170.092810.0017
Mysqli_queries1.767296.6827630.0281
Looping result0.00060.0333610.0000
Template Total1.791098.020.8955
Template load0.00210.116920.0011
Template processing1.788897.863520.8944
Template load and register function0.00030.015510.0003
states
state_id_array0.00150.082710.0015
state_identifier_array0.00170.094920.0009
Override
Cache load0.00170.0917400.0000
Sytem overhead
Fetch class attribute can translate value0.00060.030720.0003
Fetch class attribute name0.00110.059460.0002
XML
Image XML parsing0.00070.039220.0004
class_abstraction
Instantiating content class attribute0.00000.001070.0000
General
dbfile0.00170.0927160.0001
String conversion0.00000.000440.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/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: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs