[TYPO3-english] Pick up author email from tt_news-record and use in Set-up

Bert Hiddink hiddink at bendoo.com
Fri Dec 18 14:47:36 CET 2009


Hello,

Please look at this snippet:

#lib.newsinfo = COA_INT
lib.authorEmail = COA
lib.authorEmail {
     20=RECORDS
     20 {
         source = {GPvar:tx_ttnews|tt_news}
         source.insertData = 1
         tables = tt_news
         conf.tt_news >
         conf.tt_news = TEXT
         conf.tt_news.field=author_email
     }
}

This renders the email of the author found in the tt_news record when 
this one is displayed. Works fine.

Now I want to use this value to override a default email for 
notification of comments:

plugin.tx_comments_pi1 {
   spamProtect {
#    notificationEmail = hiddink at bendoo.com
     notificationEmail = TEXT
     notificationEmail < lib.authorEmail
     fromEmail = hiddink at bendoo.nl
     emailTemplate = fileadmin/templates/comments/email.txt
   }
   requiredFields = firstname,email,content
}

However, this does not work...what is wrong with the syntax here?:

...
     notificationEmail = TEXT
     notificationEmail < lib.authorEmail
...

Any ideas? Thanks in advance!

Regards,
-brt



More information about the TYPO3-english mailing list