[TYPO3] configuring a plugin via backend

Antonio Reher areher at sonoratec.biz
Sat Apr 26 00:09:37 CEST 2008


I have done some work with FlexForms and they seem to be working. I'm 
having a small problem, however:

when I input the text via RTE, it saves in database without <p> and 
<div> marks, so when I type it there are no line breaks.
if RTE source shows <p>par 1</p><p>par 2</p>, it saves par 1\npar2, and 
that's what my plugin outputs.

Is there a function that transforms back to <p></p>?

Thanks!

Antonio



Antonio Reher wrote:
> Hi again... thanks for your help!
>
> I always use the kickstarter to develop extensions and plugins, but when 
> I created this particular plugin there were no options to include an RTE 
> field to configure it. Maybe I'm not looking in the right place, but I 
> can't see how this would help me with my problem. Maybe I should be more 
> precise with my questions to the list. For example:
>
> - where can  I  tell the plugin to use an RTE  texfield  (or any other 
> type, for that matter) in the  backend?
> - How do I access the data the user enters via BE from inside the 
> plugin's php code?
> - can I define actions when the user inputs data and saves the plugin 
> from the backend?
>
> thanks,
> Antonio
>
> Christopher Torgalson wrote:
>   
>> On Fri, Apr 25, 2008 at 4:03 PM, Antonio Reher <areher at sonoratec.biz> wrote:
>>   
>>     
>>> any ideas?
>>>     
>>>       
>> Yes: use the kickstarter extension--though you may want to search the
>> dev list first to find out a bit about its various imperfections. In
>> general though, it's a very useful tool and can make setting up
>> extensions and plugins much quicker.
>>
>>   
>>     
>>>  Antonio Reher wrote:
>>>  > Hi:
>>>  > I'm sure there is an answer somewhere, but I've searched and searched
>>>  > and don't really know where to start.
>>>  >
>>>  > I'm developing a front-end plugin for a website which displays an
>>>  > introductory text and a list of elements. My problem is that the only
>>>  > way I know of specifying the intro text from the BE is via TS...
>>>  >
>>>  > plugin.tx_myExt_pi1.introtext=lorem ipsum lorem ipsum lorem ipsum
>>>  > and then, in php, rendering $conf['introtext']
>>>  >
>>>  > The problem is this is not the most intuitive way of doing it for a
>>>  > basic user and I think it would be better to just have an RTE field in
>>>  > the plugin editing screen where they can input whatever text they want.
>>>  >
>>>  > I think there is a way of doing this via FlexForms, but I'm not sure I'm
>>>  > ready to use them yet... is there any way of doing this?
>>>  >
>>>  > Can anyone help me?
>>>     
>>>       
>>   
>>     
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>   


More information about the TYPO3-english mailing list