Adjusting the size of the 'text field' and 'text line'

Author Message

Einar Fagertun

Tuesday 27 January 2004 2:46:20 am

The text field and the text line in my guestbook (sign my guestbook) at www.onkelhuff.com is to big. Where can I edit the size of these two objects?

James Packham

Tuesday 27 January 2004 8:09:19 am

Create overrides for the templates used to display the textline and textareas (you can turn out template debugging to find out what they are, I can't remember off of the top of my head). The format for a text line is:

<input type="text" size="30" name="MailSendFrom" value="" />

where size defines how long the box should be (30 characters in this case) and name is where the POST variable you're editing goes. Any thing you want to appear as default can be put in value, although you should really define it through the admin interface.

Text area is a bit different:

<textarea class="box"
name="MailBody"
cols="40"
rows="15"></textarea>

Where cols is the width and rows is the height (a bit obvious really). Notice the the closing tag goes straight after the opening one - this is because anything that appears in between the two will become the default value.

That's about it really, enjoy :)

Regards,

~James~

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 19 2025 01:00:58
Script start
Timing: Jan 19 2025 01:00:58
Module start 'layout'
Timing: Jan 19 2025 01:00:58
Module start 'content'
Timing: Jan 19 2025 01:00:58
Module end 'content'
Timing: Jan 19 2025 01:00:58
Script end

Main resources:

Total runtime0.0204 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 589.3828152.6406
Module start 'layout' 0.00800.0034 742.023439.4766
Module start 'content' 0.01140.0069 781.500089.3672
Module end 'content' 0.01820.0021 870.867230.3047
Script end 0.0203  901.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002713.1955140.0002
Check MTime0.00125.7654140.0001
Mysql Total
Database connection0.00136.339810.0013
Mysqli_queries0.003316.389430.0011
Looping result0.00000.103010.0000
Template Total0.00178.310.0017
Template load0.00094.499510.0009
Template processing0.00083.811610.0008
Override
Cache load0.00062.963410.0006
General
dbfile0.002210.820680.0003
String conversion0.00000.052640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs