Forums / Developer / Change the width of a form item

Change the width of a form item

Author Message

Clemens T

Thursday 08 September 2005 4:38:29 am

Heya all,
I'd like to change the width of the subject line in my template.

{attribute_view_gui attribute=$node.object.data_map.subject}

This code just shows the input-field, but how can I adjust the width without changing the MAX length of the subject line (because I want that one to be unlimited).

Thanks!
Clemens

Albert Hornos

Friday 09 September 2005 1:49:06 am

Hi Clemens!
I don't know if I've understood so well and I don't know what datatype is your subject attribute (perhaps a text line?). I changed my with directly in ezstring.tpl (or some other datatype in /design/standard/classes/datatype/view/ezxxx.tpl and if you prefer you could make an override).

I hope it will be a help for you.

Albert.

Clemens T

Friday 09 September 2005 1:54:32 am

Hey Albert!
Thanks for the reply,
I'm not sure that is what I'm looking for. I'm talking about the feedback-form (so the standard feedback-form class) and the subject attribute of that class... and I would like to give that specific input textbox a specified width.. apart from all other input-text-boxes.

I didn't change the feedback-form or anything, so it's the default Subject attribute, single textline.

Got a idea?
Thanks!
(ps: I'll be trying your solution as well)

Aleksander Medevedev

Thursday 23 February 2006 5:48:45 am

Hey Everybody!

I have the same problem and struggling to sol that?

I think many faces the same problem?
Any solutions?

eZ debug

Timing: Jan 18 2025 22:18:05
Script start
Timing: Jan 18 2025 22:18:05
Module start 'content'
Timing: Jan 18 2025 22:18:06
Module end 'content'
Timing: Jan 18 2025 22:18:06
Script end

Main resources:

Total runtime0.6893 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 587.7109180.8359
Module start 'content' 0.00740.5520 768.5469520.6484
Module end 'content' 0.55940.1298 1,289.1953334.1016
Script end 0.6892  1,623.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.5905210.0002
Check MTime0.00150.2107210.0001
Mysql Total
Database connection0.00160.227510.0016
Mysqli_queries0.620389.98501990.0031
Looping result0.00190.27391970.0000
Template Total0.662996.220.3314
Template load0.00190.270420.0009
Template processing0.661095.890420.3305
Template load and register function0.00020.028710.0002
states
state_id_array0.00110.158910.0011
state_identifier_array0.00080.119420.0004
Override
Cache load0.00160.2287270.0001
Sytem overhead
Fetch class attribute can translate value0.00160.236640.0004
Fetch class attribute name0.00100.139340.0002
XML
Image XML parsing0.00070.095940.0002
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.00400.5816210.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs