Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Limiting Description field

Quote Reply
Limiting Description field
Hi:

I need to limit the number of chars in Description field to 255 (LinksSQL 2). How can I do it and trancate existing long descriptions to 255 chars only? Thank you for your help.
Quote Reply
Re: [Danilov] Limiting Description field In reply to
Database > Links > Properties > click Description ... then set the field length to 255.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Limiting Description field In reply to
You'll probably have to alter the database field type to be CHAR rather than TEXT, and change the display option from TEXTAREA to TEXT. Also, do the same in include_form.* (or your add/modify templates as well).


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Limiting Description field In reply to
I don't see why this change would be necessary.

Best regards,
Webmaster33


Paid Support
from Webmaster33. Expert in Perl programming & Gossamer Threads applications. (click here for prices)
Webmaster33's products (upd.2004.09.26) | Private message | Contact me | Was my post helpful? Donate my help...
Quote Reply
Re: [webmaster33] Limiting Description field In reply to
Quote:
I don't see why this change would be necessary.

Because character lengths on text fields are not supported in the database. So if you wanted things truncated, you'd need to change it to a char.

Cheers,

Alex
--
Gossamer Threads Inc.