Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3-templavoila] HTML field within the typo3-project-templavoila@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hy; How can I configure my flex-XML to receive a field in that I can put any HTML? <...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hy;
How can I configure my flex-XML to receive a field in that I can put any HTML? <eType>rte</eType> + <defaultExtras>richtext:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras> Quits me <dt>s and <address>s, and I get an RTE in the BE obviously. I do not want an RTE, I want a plain textarea, in that I can put HTML, and that does not output entities when rendered in the FE. How can I configure that? Thanks Niels _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#2
|
|||
|
|||
|
I think you need to add the regular textarea (for bodytext) and then edit the DS and add within
<tx_templavoila type="array"> ******************* ..... *** *** *** *** *** <proc type="array"> *** *** *** *** *** *** <HSC type="integer">0</HSC> *** *** *** *** *** </proc> *** *** *** *** </tx_templavoila> I think 0 is the correct setting. regards Michael --- On Fri, 8/22/08, Niels Fröhling <niels.froehling (AT) adsignum (DOT) com> wrote: From: Niels Fröhling <niels.froehling (AT) adsignum (DOT) com> Subject: [TYPO3-templavoila] HTML field To: "TYPO3 Templavoila project" <typo3-project-templavoila (AT) lists (DOT) netfielders.de> Date: Friday, August 22, 2008, 5:02 AM Hy; How can I configure my flex-XML to receive a field in that I can put any HTML? <eType>rte</eType> + <defaultExtras>richtext:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras> Quits me <dt>s and <address>s, and I get an RTE in the BE obviously. I do not want an RTE, I want a plain textarea, in that I can put HTML, and that does not output entities when rendered in the FE. How can I configure that? Thanks Niels _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#3
|
|||
|
|||
|
Niels Fröhling wrote:
> How can I configure my flex-XML to receive a field in that I can put any > HTML? > > <eType>rte</eType> + > <defaultExtras>richtext:rte_transform[flag=rte_enabled|mode=ts_css]</defaultExtras> > > > Quits me <dt>s and <address>s, and I get an RTE in the BE obviously. > I do not want an RTE, I want a plain textarea, in that I can put HTML, > and that does not output entities when rendered in the FE. > > How can I configure that? There is a another field type: text area. Use that. -- Dmitry Dulepov TYPO3 Core team My TYPO3 book: http://www.packtpub.com/typo3-extens...velopment/book In the blog: http://typo3bloke.net/pages/book-rev...garr-reynolds/ _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#4
|
|||
|
|||
|
Hy Dimitry;
> There is a another field type: text area. Use that The other field: "text" htmlentityfies my HTML. If that's because the flexfom-content inside the database need to be that way because of the absent CDATA, or because there is no transform applied to it on rendering I couldn't find out. It's extreme difficult to understand and find out the exact location and call-path of the flexform renderer. Thanks Niels _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#5
|
|||
|
|||
|
Hy Michael;
> I think you need to add the regular textarea (for bodytext) and then edit the DS and add within > > <tx_templavoila type="array"> > ..... > <proc type="array"> > <HSC type="integer">0</HSC> > </proc> > </tx_templavoila> > > I think 0 is the correct setting. > I'll try it out. What is that setting suppose to do? Ciao Niels _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#6
|
|||
|
|||
|
Hi!
Niels Fröhling wrote: > If that's because the flexfom-content inside the database need to be > that way because of the absent CDATA, or because there is no transform > applied to it on rendering I couldn't find out. It's extreme difficult > to understand and find out the exact location and call-path of the > flexform renderer. It is because by default everything is made HTML-safe. You need to open DS record and remove <HSC>1</HSC> fron the XML for that field. Then you can enter plain HTML there ![]() -- Dmitry Dulepov TYPO3 Core team My TYPO3 book: http://www.packtpub.com/typo3-extens...velopment/book In the blog: http://typo3bloke.net/pages/book-rev...garr-reynolds/ _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#7
|
|||
|
|||
|
>> <HSC type="integer">0</HSC>
>> I think 0 is the correct setting. >> > I'll try it out. What is that setting suppose to do? > Aha, that was easy to find. This is what you weren't sure about: * @param integer $hSC; Values -1,0,1,2: Set to zero= disabled, set to 1 then the content BETWEEN tags is htmlspecialchar()'ed, set to -1 its the opposite and set to 2 the content will be HSC'ed BUT with preservation for real entities (eg. "&" or "ê") Would be nice to have a preset-field in the Element-Type selector though. Thanks Niels _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#8
|
|||
|
|||
|
Hy Dimitry;
> It is because by default everything is made HTML-safe. You need to open DS record and remove <HSC>1</HSC> fron the XML for that field. Then you can enter plain HTML there ![]() > Ja, got it. Thanks. While we are talking (almost in realtime , I got a fast question, is there a regexp matching funktion in TS? I thought if.value = testme if.match = /test/ would be really comfortable. Ciao Niels _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#9
|
|||
|
|||
|
Hi!
Niels Fröhling wrote: > While we are talking (almost in realtime , I got a fast question, is > there a regexp matching funktion in TS? I thought > > if.value = testme > if.match = /test/ > > would be really comfortable. TSRef describes all properties ![]() -- Dmitry Dulepov TYPO3 Core team My TYPO3 book: http://www.packtpub.com/typo3-extens...velopment/book In the blog: http://typo3bloke.net/pages/book-rev...garr-reynolds/ _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
|
#10
|
|||
|
|||
|
sort of - look at parseFunc.short
hth Niels Fröhling wrote: > Hy Dimitry; >> It is because by default everything is made HTML-safe. You need to >> open DS record and remove <HSC>1</HSC> fron the XML for that field. >> Then you can enter plain HTML there ![]() >> > Ja, got it. Thanks. > While we are talking (almost in realtime , I got a fast question, is > there a regexp matching funktion in TS? I thought > > if.value = testme > if.match = /test/ > > would be really comfortable. > > Ciao > Niels > _______________________________________________ TYPO3-project-templavoila mailing list TYPO3-project-templavoila (AT) lists...netfielders.de http://lists.netfielders.de/cgi-bin/...ct-templavoila |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-templavoila] TemplaVoila HTML Rendering Issues | Tan Le | typo3-project-templavoila@lists.netfielders.de | 1 | 03.12.2007 14:28 |
| [TYPO3-ttnews] HTML in title field | Lamb, Brian | typo3-project-tt-news@lists.netfielders.de | 1 | 07.11.2007 22:25 |
| [TYPO3-templavoila] Adding Text/HTML to the content in TemplaVoila | Uwe Grohne | typo3-project-templavoila@lists.netfielders.de | 11 | 01.11.2007 15:14 |
| [TYPO3-templavoila] HTML Tags that accept templavoila content | Nagita Karunaratne | typo3-project-templavoila@lists.netfielders.de | 1 | 15.04.2007 06:33 |
| [TYPO3-templavoila] Serious bug in Templavoila - HTML source getsmessed up | Tomas Larsen | typo3-project-templavoila@lists.netfielders.de | 2 | 01.03.2007 01:25 |