mlapl1
Posts: 66
|
| Posted: 05/23/2008, 4:50 AM |
|
Hello
this is probably an html question but here goes anyway.
I have a table created with CCS. This table contains a label. The content property of this label is set to "html". The content is retrieved from a database and the html was either created manually or with an editor such as FCKeditor.
My problem is that the text in the row does not wrap. Instead the width of the row keeps growing and the table then overflows the screen. How can I get the text to wrap in a reasonable way - just as it does in other CMS systems that I use? I believe that the text would also not wrap if the content of the label were set to "text" rather than "html".
Thanks for your help. As always it is very much appreciated.
Andrew
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 05/23/2008, 9:01 AM |
|
Can your lable be a Textarea?
That will work...
Also look at coverting crlf to <br> for html viewing
Walter
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
mlapl1
Posts: 66
|
| Posted: 05/23/2008, 10:30 AM |
|
Thank you - only problem is that a textarea will not display html correctly (or at least I cannot get it to do so). It will just display 'text'. Initially I did want it to be in a textarea but was told on the list that the only way a textarea could show html (using CCS) is to redefine it as a FCKeditor area. Seems like a very heavy solution for something that should be simpler.
If you have any ideas I would appreciate it.
Thanks again
Andrew
|
 |
 |
wkempees
Posts: 1679
|
| Posted: 05/23/2008, 11:10 AM |
|
Just did a quick test.
Basics:
Grid generated on store_products table from example InternetDB
Just basic builder generated grid, showing product_id, product_name and description.
In the example database the description is type text, and contains no data.
The grid was generated standard so all fields are labels.
Pressed SHIFT+F7 to run in Browser.
With the grid displayed (FF) pressed View generated source, copied the grid.
In Navicat a row from store_products, pasted the copied html into description.
Back to Designer, the grid, selected the description label properties changed:
Datatype from Text to Memo
Content from Text to HTML
Works a treat, now displays the grid in the description of that one product.
Walter
The proof is in the concept, 2 minute job.
_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)
if you liked this info PAYPAL me: http://donate.consultair.eu
|
 |
 |
mlapl1
Posts: 66
|
| Posted: 05/23/2008, 3:07 PM |
|
Thank you - will follow up - Andrew
|
 |
 |
mamboBROWN
Posts: 1713
|
| Posted: 05/25/2008, 8:33 PM |
|
mlapl1
Please add [RESOLVED] to your title if your problem has solved. Thanks.
|
 |
 |
|