[TYPO3-english] Powermail Typoscript Selectbox
Bastian Luik
bastian.luik at gmx.de
Fri Jan 10 16:31:52 CET 2014
Hello everyone,
currently I am trying to get a dynamic selectbox (dropdown) with entries from fe_users. I try to create a selectbox with entries of users who are in the same usergroup as the user. I tried the following code but I cant select anything in the dropdown. I implemented the field into the formular. The field uid is 15 and is stored in tx_powermail_domain_model_fields`
Maybe someone has a good idea.
Best regards
Bastian
## Usergroup selector
lib.userselect = COA_INT
lib.userselect {
10 = TEXT
10.value =<label for="uid15">Please choose User:</label>
20 = CONTENT
20.wrap = <select id="uid15" name="tx_powermail_pi1[uid15]" class="powermail_field powermail_select validate[required]" size="1"> |</select>
20 {
table = fe_users
select {
#selectFields = title
#pidInList = this
#where statement is still static, as I try to set up the rest first.
where = fe_users.usergroup = 5
orderBy = username
}
renderObj = COA
renderObj {
10 = COA
10 {
10 = TEXT
10 {
field = username
wrap = <option value="|">
}
20 = TEXT
20 {
field = uid
wrap = |</option>
}
}
}
}
}
More information about the TYPO3-english
mailing list