Gossamer Forum
Home : Products : DBMan : Customization :

Description field

Quote Reply
Description field
Hi!

Just need to know how to enter some text in the description field with line brakes and spaces, and get DBMan to output the text in the same way.

I mean, when I enter some text it never takes the line brakes and makes the whole description into sort of one line thing!

How do I do that?? Crazy

Please e-mail me as soon as possible if anyone knows what I mean, my email is: theblueblade@hotmail.com

Thanx a lot!!

PS: DBMan works great!!
I'm using it in south-america!
Quote Reply
Re: [slipknot] Description field In reply to
There is a mod:

Autogenerate Enhancements - -- Allows selection of "admin-only" checkboxes, radio fields, select fields and textareas

-- Creates "clickable" links for email addresses and URLs

-- Allows you to set whether you would like skip rows in the record display if the field value is blank.

-- Maintains line formatting in textarea fields



http://www.gossamer-threads.com/...DBMan/Modifications/

Check it out
Quote Reply
Re: [slipknot] Description field In reply to
In sub html_record right after:

my (%rec) = @_;

If you field is called for instance "Description" add:

$rec{'Description'} =~ s/\n/<BR>/g;

This will display your description field with line breaks. You might want to add a note to whoever adds records to use the Enter key to create line breaks.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [LoisC] Description field In reply to
Thanx for your reply, but it didn't work!

I did exactly what you told me but, nothing...

Please explain it to me again, maybe you made a mistake!!!

Thanx again!!
Quote Reply
Re: [slipknot] Description field In reply to
Are you definitely using html_record for the display...ie is that code being executed?
Quote Reply
Re: [slipknot] Description field In reply to
Also it will only work if when entering record the enter key was used to create line breaks.

If the text is entered as all one line than that is how it will appear.

Also be sure to rename the field to match that of your database.

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Quote Reply
Re: [slipknot] Description field In reply to
Hi,

I just used a <pre> tag in my textarea field. I'm using JPDeni's User-Friendly html.pl.

For example:

in sub html_record in html.pl I used

<TR>
<TD ALIGN="Right" VALIGN="TOP"><$font_color>Description: </FONT></TD>
<TD VALIGN="TOP" colspan=2><pre>&nbsp;<$font>$rec{'Description'}</Font></pre></T
</TD></TR>

I'm not sure if I've answered your question or not; I'm still very much learning.

Elizabeth