[Typo3-dev] unnecessary feature for ObTS??
    Thorsten Kahler 
    thorsten.kahler at dkd.de
       
    Fri Jan 14 10:57:59 CET 2005
    
    
  
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
-- 
No Subject - No Realname - No Service!
Respect the List/Newsgroup Rules!
  >> http://typo3.org/1438.0.html <<
    
    
More information about the TYPO3-dev
mailing list