[TYPO3-dev] Multiline typoscript and end parenthesis

Jerome Schneider j.schneider at ameos.com
Wed Aug 15 12:23:24 CEST 2007


Hi there,

I produced a patched version of t3lib_tsparser.php that can handle 
syntax like this:

config.something <<<WHATEVERIWANT

Here is some
multine text
that can include
(
or even
)

without parse problems, as the only multiline-end considered there
will be <<<WHATEVERIWANT, considering it's the first
non-whitespace string on the line

 >>>WHATEVERIWANT

The modification needed for this feature is really tiny.
It works also fine with template analyzer and TS highlighting

Anybody knows the procedure to submit this to the core team ?

Best regards,
Jerome Schneider

Jerome Schneider a écrit :
> 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