[TYPO3-project-formidable] Info : small bug formidable

Jerome Schneider j.schneider at ameos.com
Wed May 30 09:04:57 CEST 2007


Hello Francois,

You sould try the all-mighty <empty /> tag in modifiers, deleting it's 
parent tag from the xml

like this:

<renderlet:LISTBOX>
   <data>
     <userobj>
       <php><![CDATA[return $this->oSandBox->aer_listBox();]]></php>
     </userobj>
     <defaultvalue first="" />
   </data>
   <modifiers>
     <modifier>
       <conditions>
         <condition>
           <userobj>
             <php><![CDATA[
               return !$this->_oParent->isPowerUser;
             ]]></php>
           </userobj>
         </condition>
       </conditions>
       <modification>
         <data>
           <defaultvalue>
             <userobj>
               <php><![CDATA[
                 return $this->oSandBox->aer_theGoodValue();
               ]]></php>
             </userobj>

            <first>
              <empty />   <!-- this will delete the "first" xml tag -->
            </first>

           </defaultvalue>
         </data>
       </modification>
     </modifier>
   </modifiers>
</renderlet:LISTBOX>


Regards,
Jerome Schneider


François SCHOSSIG a écrit :
> Hello,
> 
> Just for information: there is a small bug in <modifiers>.
> In a <renderlet:LISTBOX>, if you try to modify the <data> that has a 
> <defaultvalue first="" /> with a <modifiers> the <defaultvalue first="" 
> /> is not replaced.
> 
>   <renderlet:LISTBOX>
>     <data>
>       <userobj>
>         <php><![CDATA[return $this->oSandBox->aer_listBox();]]></php>
>       </userobj>
>       <defaultvalue first="" />
>     </data>
>     <modifiers>
>       <modifier>
>         <conditions>
>           <condition>
>             <userobj>
>               <php><![CDATA[return !$this->_oParent->isPowerUser;]]></php>
>             </userobj>
>           </condition>
>         </conditions>
>         <modification>
>           <data>
>             <defaultvalue>
>               <userobj>
>                 <php><![CDATA[return 
> $this->oSandBox->aer_theGoodValue();]]></php>
>               </userobj>
>             </defaultvalue>
>           </data>
>         </modification>
>       </modifier>
>     </modifiers>
>   </renderlet:LISTBOX>
> 
> -- 
> F. SCHOSSIG, ICT Manager
> Assemblée des Régions d'Europe
> http://www.a-e-r.org
> 
> 


More information about the TYPO3-project-formidable mailing list