[Typo3-dev] unnecessary feature for ObTS??

dan frost dan at danfrost.co.uk
Fri Jan 14 11:09:05 CET 2005


ok - i will try to make the obts syntax compatible with the constants syntax


Thorsten Kahler wrote:
> Hi Dan,
> 
> IIRC it's possible. At least I think I used constants this way before. 
> But  let's have a look first...
> 
> 
> Yep! t3lib_TStemplate::substituteConstants() just makes a simple  
> str_replace().
> 
> But I surely will prefer using the ObTS variant if I find the time 
> testing  it ;-)
> 
> Nice regards
> Thorsten
> 
> On Thu, 13 Jan 2005 09:53:54 +0000, dan frost <dan at danfrost.co.uk> wrote:
> 
>> Is it possible for normal TypoScript to do something like:
>>
>> example = TEXT
>> example {
>>     value = <a href="?id={$lib.my.constants}">A label</a>
>>     insertData = 1
>> }
>>
>> ??
>> That is: can constants be put into part of the value of something?
>>
>> If not, then use ObTS's {ts : ...} syntax:
>>
>>
>> lib.my.constant = 1234
>>
>> example = OBTS
>> example {
>>     value = <a href="?id={ts : lib.my.constant}">A label</a>
>>     insertdata = 1
>> }
>>
>> Is there an existing way??
>>
>> dan
> 
> 
> 
> 




More information about the TYPO3-dev mailing list