[TYPO3-dev] Problem with selected records in pi_flexform

Sebastian Gebhard sebastian.gebhard at googlemail.com
Thu Sep 24 23:01:12 CEST 2009


Hi,

for an application i'm developing i use tagpack to tag records of 
various tables.
In a plugin flexform the editor may select tags.

For that i wrote:
           <tags>
             <TCEforms>
               <label>LLL:EXT:myext/locallang.xml:ff_tags</label>
               <config>
                 <type>group</type>
                 <internal_type>db</internal_type>
                 <allowed>tx_tagpack_tags</allowed>
                 <prepend_tname>0</prepend_tname>
                 <minitems>0</minitems>
                 <maxitems>999</maxitems>
                 <MM>tx_tagpack_tags_relations_mm</MM>
                 <wizards>
                   <_VALIGN>top</_VALIGN>
                   <ajax_search>
                     <type>userFunc</type>
 
<userFunc>tx_tagpack_ajaxsearch_client->renderAjaxSearch</userFunc>
                     <params>
                       <client>
                         <startLength>2</startLength>
                       </client>
                       <tables>
                         <tx_tagpack_tags>
                           <searchFields>name</searchFields>
                           <enabledOnly>1</enabledOnly>
                           <label>###name###</label>
                         </tx_tagpack_tags>
                       </tables>
                     </params>
                   </ajax_search>
                 </wizards>
                 <size>3</size>
               </config>
             </TCEforms>
           </tags>

The rendering of the field and selecting tags with the ajax 
find-as-you-type works perfectly.

But when I save the form something strange happens.
The tags are saved correctly (when I open the content record again, the 
selected tags are shown again) but when I call
$this->pi_getFFvalue($this->cObj->data['pi_flexform'], 'tags', 'sDEF');
Only the NUMBER OF TAGS selected is returned. When I've selected two 
tags I don't get the ids of them but only the integer 2.

Taking a look at phpMyAdmin also only shows a "2" instead of the tag 
uids in pi_flexform. Somewhere the correct uids must be stored, but where?

Kind regards,
Sebastian


More information about the TYPO3-dev mailing list