[habari-users] Re: Text fields in plugin settings are escaped

2011-03-13 Thread Konzertheld
Thank you, that works.

On 4 Mrz., 04:14, Colin lild...@gmail.com wrote:
 Hi Konzertheid

 I thought I'd replied to you, but I guess I didn't.  Sorry.

 You can prevent this behaviour by forcing the contents to be saved raw as
 follows:

   $ui= new FormUI( strtolower( __CLASS__ ) );
   $ui-append( 'textarea', 'txtarea', ...    //  Append the text area
   $ui-txtarea-raw = TRUE;               // Force it's contents to be saved
 without any processing

 HTH
 Colin

 On Thu, Mar 3, 2011 at 7:23 PM, Konzertheld konzerth...@konzertheld.dewrote:









  Is there really nobody who has an idea about this?

  On 7 Jan., 04:23, Konzertheld konzerth...@konzertheld.de wrote:
   Hi.
   I'm developing a plugin called Bricks which provides text snippets.
   Better: should provide - I'm surrently stucked at saving text field
   values from the plugin configuration. I'm using the textmulti
   formcontrol. Some of the text I enter there is escaped in a way I
   don't understand.

   Examples - the first line of a pair is what I entered, the second line
   is what I get after submitting.

   test bla=
   test bla=

   test bla=
   test bla==

   test
   test

   What is that and how can I stop it? If it is some escaping for
   database security, it should be reverted before loading the values
   into the form.

   By the way, another question. Is there a form control that provides
   simple input for key-value-pairs? The best thing I could make use of
   would be something like the textmulti control for key-value-pairs
   where adding one element adds two text fields.

   Oh, and the output of this whole formcontrol stuff is messed up, the
   text fields are flying around somewhere... but I'll create a ticket
   for that after checking.

   Regards,
   Konzertheld

  --
  To post to this group, send email to habari-users@googlegroups.com
  To unsubscribe from this group, send email to
  habari-users-unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/habari-users

 --
 Colin Seymour
 Blog:http://colinseymour.co.uk
 Tech Stuff:http://lildude.co.uk
 Barefoot Running:http://barefootrunner.co.uk
 IRC: lildude #habari

-- 
To post to this group, send email to habari-users@googlegroups.com
To unsubscribe from this group, send email to 
habari-users-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/habari-users


[habari-users] Re: Text fields in plugin settings are escaped

2011-03-03 Thread Konzertheld
Is there really nobody who has an idea about this?

On 7 Jan., 04:23, Konzertheld konzerth...@konzertheld.de wrote:
 Hi.
 I'm developing a plugin called Bricks which provides text snippets.
 Better: should provide - I'm surrently stucked at saving text field
 values from the plugin configuration. I'm using the textmulti
 formcontrol. Some of the text I enter there is escaped in a way I
 don't understand.

 Examples - the first line of a pair is what I entered, the second line
 is what I get after submitting.

 test bla=
 test bla=

 test bla=
 test bla==

 test
 test

 What is that and how can I stop it? If it is some escaping for
 database security, it should be reverted before loading the values
 into the form.

 By the way, another question. Is there a form control that provides
 simple input for key-value-pairs? The best thing I could make use of
 would be something like the textmulti control for key-value-pairs
 where adding one element adds two text fields.

 Oh, and the output of this whole formcontrol stuff is messed up, the
 text fields are flying around somewhere... but I'll create a ticket
 for that after checking.

 Regards,
 Konzertheld

-- 
To post to this group, send email to habari-users@googlegroups.com
To unsubscribe from this group, send email to 
habari-users-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/habari-users