[Typo3-dev] feadmin and static countries
Ursula Klinger
klinger at punkt.de
Mon Oct 25 13:14:55 CEST 2004
Hi,
I want to use the data of the static_countries DB table of the extension
static_info_tables in the extension feuser_admin. For this purpose
I add a marker like ###CE_COUNTRY### to the fe_admin_fe_users.tmpl to this
area.
<BR><BR><BR><BR><HR><BR><BR><BR>
<em>Form for creation of a new fe_users record:</em>
<br>
<br>
<!-- ###TEMPLATE_CREATE### begin
Country:<br>
<select name="FE[fe_users][tx_ptfeuserext_country]" size ="20"><br>
###CE_COUNTRY###
</select>
and in the typoscript I add
cObjects.COUNTRY = CONTENT
cObjects.COUNTRY {
table = static_countries
select.selectFields = uid, cn_short_local
select.pidInList = 0
renderObj = COA
renderObj.10 = TEXT
renderObj.10.field = uid
renderObj.10.wrap = <option value="|">
renderObj.20 = TEXT
renderObj.20.field = cn_short_local
renderObj.20.wrap = |</option>
}
There are no countries in my selection box. I think that it does not work
because the entries of static_countries DB table has pid = 0 and this is
no accessible page by the FE user. I can resolve this problem by a php
function, but I think there is also a solution with Typoscript. I do not
know the solution. Can anyone help me.
Thanks
Ursula
More information about the TYPO3-dev
mailing list