TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3-templavoila] HTML field

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? <...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-project-templavoila@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 22.08.2008, 07:02
Niels Fröhling
Gast
 
Beiträge: n/a
Standard [TYPO3-templavoila] HTML field

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 22.08.2008, 09:20
Michael Niemann
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] HTML field

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 22.08.2008, 10:04
Dmitry Dulepov [typo3]
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] HTML field

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 22.08.2008, 15:19
Niels Fröhling
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] HTML field

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 22.08.2008, 15:20
Niels Fröhling
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] HTML field

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 22.08.2008, 15:24
Dmitry Dulepov [typo3]
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] HTML field

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 22.08.2008, 15:31
Niels Fröhling
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] HTML field

>> <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.
"&amp;" 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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #8  
Alt 22.08.2008, 15:39
Niels Fröhling
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] HTML field

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #9  
Alt 22.08.2008, 15:48
Dmitry Dulepov [typo3]
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] HTML field

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #10  
Alt 23.08.2008, 02:24
Tyler Kraft
Gast
 
Beiträge: n/a
Standard Re: [TYPO3-templavoila] HTML field

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

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


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:12 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74