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.