[TYPO3] How to have a new line in a string value in typoscript
Martin Kindler
kindlerm at arcor.de
Fri Jun 9 15:48:56 CEST 2006
I see I need glasses :-)
Thanks!
Martin
> -----Ursprüngliche Nachricht-----
> Von: typo3-english-bounces at lists.netfielders.de
> [mailto:typo3-english-bounces at lists.netfielders.de] Im
> Auftrag von Peter Klein
> Gesendet: Freitag, 9. Juni 2006 15:32
> An: typo3-english at lists.netfielders.de
> Betreff: Re: [TYPO3] How to have a new line in a string value
> in typoscript
>
>
> Hi Martin. You need to use "()" brackets, not "{}" !
>
> --
> Peter Klein/Umloud Untd
>
> "Martin Kindler" <kindlerm at arcor.de> skrev i en meddelelse
> news:mailman.1942.1149858373.17090.typo3-english at lists.netfiel
> ders.de...
> Thanks Peter!
>
> But it does not work :-(
>
> If I use
> page = PAGE
> page.typeNum = 0
>
> page.config.doctype {
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
> "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >
> }
>
> page.config.htmlTag_setParams =
> xmlns="http://www.w3.org/1999/xhtml"
>
> page.config.additionalHeaders = Content-type:
> application/vnd.wap.xhtml+xml
> page.10 = TEXT
> page.10.value = Welcome to the Mobile Revolution!
>
> the result is:
> <!DOCTYPE html
> PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head> ....
>
> If I use the "one-line" version
> page = PAGE
> page.typeNum = 0
>
> page.config.doctype = <?xml version="1.0"
> encoding="utf-8"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD
> XHTML Mobile 1.0//EN"
> "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >
>
> page.config.htmlTag_setParams =
> xmlns="http://www.w3.org/1999/xhtml"
>
> page.config.additionalHeaders = Content-type:
> application/vnd.wap.xhtml+xml
> page.10 = TEXT
> page.10.value = Welcome to the Mobile Revolution!
>
> the result is the correct (but one line)
> <?xml version="1.0" encoding="utf-8"?><!DOCTYPE html
> PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
> "http://www.wapforum.org/DTD/xhtml-mobile10.dtd" >
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head> ....
>
> Martin
>
> > -----Ursprüngliche Nachricht-----
> > Von: typo3-english-bounces at lists.netfielders.de
> > [mailto:typo3-english-bounces at lists.netfielders.de] Im Auftrag von
> > Peter Klein
> > Gesendet: Freitag, 9. Juni 2006 14:48
> > An: typo3-english at lists.netfielders.de
> > Betreff: Re: [TYPO3] How to have a new line in a string value in
> > typoscript
> >
> >
> > Hi Martin, if you use the multiline way of specifying a TS
> value, then
> > it can contain linefeeds.
> >
> > The "normal way":
> >
> > blabla.value = this is a test an is all on one line
> >
> >
> > The "multiline way":
> >
> > blabla.value (
> > this is a test an is
> > on two line lines
> > )
> >
> > --
> > Peter Klein/Umloud Untd
> >
> >
> > "Martin Kindler" <kindlerm at arcor.de> skrev i en meddelelse
> > news:mailman.1866.1149856464.17090.typo3-english at lists.netfiel
> ders.de...
> >I have googled and searched TSREF, but didn't find an
> answer. Perhaps
> >someone here can help me.
> >
> > I want to set a property (page.config.doctype) using
> Typescript to a
> > string value that contains newlines. Is this possible?
> >
> > The newlines are not absolutely needed, but as the value is rather
> > long, it
> > would be much better.
> >
> > Martin
> >
>
>
> _______________________________________________
> 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