In Typoscript, I want to use register together with select. I have a row with values: firstname, lastname, mail. I want to assign it to register somehow, and then use it for another plugin:
page {
10 = CONTENT
10 {
table = tx_my_custom_table
select {
pidInList = 21
where = uid=1234
selectFields = firstname,lastname,mail
}
renderObj = COA
renderObj {
10 = LOAD_REGISTER
10 {
/*how to assign values to register???*/
}
}
}
}
plugin.tx_powermail.settings.setup.prefill {
email = TEXT
email.value = {register.mail}
}
I tried a lot of combinationes with data and field, but it didn't work.
Adding the SELECT statement to the plugin section is possible, but in reality I have 30 fields, and I don't want 30 database queries for one row.