[TYPO3-templavoila] constants in Templavoila
redacted user
redacted-user at example.org
Mon Feb 9 16:32:44 CET 2009
try
10 = TEXT
10.value = {$TSconst.con_test}
10.typolink.parameter = {$TSconst.con_test}
Steffen Kamper schrieb:
> Steffen Kamper schrieb:
>> Hi,
>>
>> i can confirm this - just tried the same, even i found the
>> substitution code in source.
>>
>> So please go ahead and file a BT entry ;-)
>>
>
> stop - it works, i had a typo in my test.
>
> For reproduca i did a simple test, this in setup:
> plugin.tx_templavoila_pi1.TSconst.con_test = 12345
>
> this in DS:
> 10 = TEXT
> 10.value = {$TSconst.con_test}
>
> FE output: 12345
>
> So something may be wrong in your test?
>
> You may try to debug it in the pi1, in this lines:
> if (is_array($this->conf['TSconst.'])) {
> foreach($this->conf['TSconst.'] as $constant => $value) {
> if (!is_array($value)) {
> // Substitute constant:
> $LP[$key]['TypoScript'] =
> str_replace('{$TSconst.'.$constant.'}',$value,$LP[$key]['TypoScript']);
> }
> }
> }
>
> vg Steffen
More information about the TYPO3-project-templavoila
mailing list