[TYPO3] Problem Rendering a Choice type field
Brian Lynch
Info at Digi-Bis.com
Wed Sep 10 23:33:22 CEST 2008
I have created a few extra fields for the fe_user table with the
extension kickstarter.
Everything is working fine exept:
rendering a choice field in front end with COA
One of my extension fields is a choice field (choose from a list of
choices). It displays fine when
creating a new account or when maintaining the accunt info with
Login/Logout and fe_userreigistration plug in, and it display fine in the
backend.
I have a custom page where certain users are listed and I created the
listing with a COA object and typoscript queries the fe_user table.
In my COA here is the typo script lines for this choice field:
71=TEXT
71.data=LL:EXT:blrtdevkey/locallang_db.xml:fe_users.tx_blrtdevkey_pricona
ct
71.if.isTrue.field = tx_blrtdevkey_pricontact
71.wrap = <h3>Primary Contact Method:</h3><p> | </p>
All I get is the lable of the field, if I add .I to the field the results
are blank.
if I substatute the field eg.
71.field = tx_blrtdevkey_pricontact
I get the intiger stored in the field e.g. 0 or 1 or 2 or 3 ect.
how can I render the field with the proper text lable of the choice value
stored in the database? The choice information is stored in the
locallang_db.xml file for the extension, but I don't know how to tell COA
to parse the text info and render it as the data for the COA query.
Any help is appreated, even a document referance, I have three Typo3
books and willing to read anything in english.
Thank You,
Brian Lynch
More information about the TYPO3-english
mailing list