[TYPO3-dev] Multiline typoscript and end parenthesis

Steffen Kamper steffen at sk-typo3.de
Wed Aug 15 11:35:31 CEST 2007


Hi Jerome,

there is a "heredoc"-syntax in TS:

 $rSql ( $GLOBALS["TYPO3_DB"]->exec_SELECTquery(
"title",
"pages",
"uid=" . $iPageUid
);    // this line fools the parser
)

does that work?

vg  Steffen

"Jerome Schneider" <j.schneider at ameos.com> schrieb im Newsbeitrag 
news:mailman.1.1187170151.9985.typo3-dev at lists.netfielders.de...
> Hi Chris,
>
> Thanks but as I said this kind of trick will be really unhandy on the long 
> term.
>
> I'm looking for the possibility to implement something like the HEREDOC 
> php notation in TS parser (see 
> http://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc )
>
>
> Greetz from Frankreich :)
>
> Christian Wolff a écrit :
>>
>>>
>>> In my TS code (complete below), here are the problematic lines:
>>>
>>>          $rSql = $GLOBALS["TYPO3_DB"]->exec_SELECTquery(
>>>       "title",
>>>       "pages",
>>>       "uid=" . $iPageUid
>>>     );    // this line fools the parser
>>>
>>>
>>
>> Move the Parentese one line up.
>> the typo script parser looks for the first none whitespache char.
>> an if this is a Parentese then it exit the "Code-block"
>>
>> greets chris 






More information about the TYPO3-dev mailing list