PHP Classes

Two questions

Recommend this page to a friend!

      DrasticTools  >  All threads  >  Two questions  >  (Un) Subscribe thread alerts  
Subject:Two questions
Summary:Using different controls and tag stripping
Messages:3
Author:Dave
Date:2008-11-07 20:14:35
Update:2008-11-15 01:56:25
 

  1. Two questions   Reply   Report abuse  
Picture of Dave Dave - 2008-11-07 20:14:35
Hello,

I have two questions:

1) how does one implement different controls in the DrasticGrid? I want to use textareas for some fields.

2) I would like to use DrasticGrid to manage content on a dynamic site. Some of this content will have html tags. However, clicking edit strips the tags. How do you prevent this?

Cheers!

  2. Re: Two questions   Reply   Report abuse  
Picture of dd dd - 2008-11-14 21:59:38 - In reply to message 1 from Dave
Hi Dave,

1) if you use drasticgrid on a table with column type text, it will use a textarea in the grid
You can also override the default of a column using the option type setting in the columns option (and use DDTYPETEXT).

2) Must be a bug. It is on the bug list now.

  3. Re: Two questions   Reply   Report abuse  
Picture of Dave Dave - 2008-11-15 01:56:25 - In reply to message 2 from dd
Thanks for the response! Works as expected and with the data type set to 'text' tags are not being stripped. Originally the field was set as a longtext I believe.

Dave