[TYPO3] How to set typoscript for a specific content-element?
    Mikkel Hastrup (Datafant AB) 
    mikkel.hastrup at datafant.se
       
    Wed Mar  5 11:50:37 CET 2008
    
    
  
Hello there,
 
I'm trying to set a specific html-template via typo3script on an
newloginbox-content element.
 
Basically, just like you can set a template on a specific
tt_news-content element, I would like to do the same on newloginbox, but
as this plugin doesn't have this feature on the content element itself,
I am trying to do it via Typoscript. As there will sometimes be multiple
instances of newloginbox on my site, this is the reason I'm not just
setting a general template for the newloginbox via typoscript.
 
I found this example on:
http://wiki.typo3.org/index.php/De:TSrefConditions which should set
specific typoscript on tt_content with uid 37.
 
[globalVar = TSFE:tt_content|uid = 37]
    plugin.tt_news._LOCAL_LANG.de.preAuthor = Autor:
[global]
 
Based on this example I'm trying this code:
 
# Userlogin
lib.userlogin = RECORDS
lib.userlogin.source = 117
lib.userlogin.tables = tt_content
 
[globalVar = TSFE:tt_content|uid = 117]
    plugin.tx_newloginbox_pi1.templateFile =
fileadmin/template/newloginbox_00.html
[global]
 
However, the TSFE:tt_content|uid - part doesn't seem to actually work
(the globalVar-state is never "true") so I'm wondering if there's any
solution to basically set typoscript for a specific content element?
 
Best regards,
Mikkel
    
    
More information about the TYPO3-english
mailing list