[TYPO3-dev] Multiline typoscript and end parenthesis
Jerome Schneider
j.schneider at ameos.com
Wed Aug 15 14:24:28 CEST 2007
Hi steffen and tapio,
I think I've been misunderstood.
this line *is already* part of a multiline section, the userobj.php( ... )
The fact is that one can have problems in multiline sections if there's
a ) as the first char of one line in the typoscript multiline block =>
( ... )
As I store a small piece of php in my ts conf, It happens that closing a
php function call in it breaks the parser, which is the case with my
");" closing the call to $GLOBALS["TYPO3_DB"]->exec_SELECTquery
I made a tiny modification to t3lib/class.t3lib_tsparser.php, based on
php's HEREDOC notation, that solves the problem
Catch the patch here ( for std T3 v4.1.1 ):
http://www.ameos.com/fileadmin/formidable/patches/heredoc_patch.txt
Regards,
Jerome
Tapio Markula a écrit :
> Steffen Kamper kirjoitti:
>> 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
>
> I have just added something after variable
> $GLOBALS["TYPO3_DB"]->exec_SELECTquery(
> ...
> "uid=" . $iPageUid." ...",
More information about the TYPO3-dev
mailing list