[TYPO3-project-formidable] renderlet:LISTER examples?

Fabien Udriot fudriot at omic.ch
Tue Oct 30 11:27:35 CET 2007


Have you tried something like this ?

<recombine>
     <userobj>
	<ts><![CDATA[
   10 = COA
   10 {

     5 = TEXT
     5.value < params.label
     5.wrap = <div>|</div>

     10 = TEXT
     10.value < params.input
     10.wrap = <div class='myclass'>|</div>
   }
      ]]></ts>
     </userobj>
</recombine>

http://wiki.typo3.org/index.php/Formidable_documentation#Using_recombine

Why do you want to have exactly ?

Valery Romanchev a écrit :
> Hi  Fabien
> 
> Fabien Udriot пишет:
>> Do you have a Mayday message ? What does it tell you ?
>>
> 
> Yes, I get it after I put custom template.
> This meassage give me needed info.
> 
> Now I have working example, but it is not clear, how I can put TS code 
> for     <column name="decimal" type="renderlet:TEXT" />.
> 
> 
> 
> 
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <formidable version="0.7.85"
>     xmlns:datahandler="http://www.ameos.com/formidable/080/datahandler"
>     xmlns:datasource="http://www.ameos.com/formidable/080/datasource"
>     xmlns:renderer="http://www.ameos.com/formidable/080/renderer"
>     xmlns:renderlet="http://www.ameos.com/formidable/080/renderlet"
>     xmlns:validator="http://www.ameos.com/formidable/080/validator"
>     xmlns:actionlet="http://www.ameos.com/formidable/080/actionlet">
> 
>     <meta>
>         <name>datasource:PHPARRAY tests</name>
>         <form formid="tx_ameosdsphparray_pi1"/>
>     <displaylabels>true</displaylabels>
>     <debug>false</debug>       
>     </meta>
> 
>     <control>
> 
>         <datahandler:VOID />
>         <renderer:STANDARD />
> 
>         <datasources>
>             <datasource:PHPARRAY name="numbers">
>                 <bindsto>
>                     <userobj>
>                         <php><![CDATA[
>                            
>                             $aData = array();
> 
>                             for($k = 1; $k <= 30; $k++) {
>                                 $aData[] = array(
>                                     "decimal" => $k,
>                                     "hexa" => dechex($k),
>                                     "octal" => decoct($k),
>                                     "bin" => decbin($k),
>                                 );
>                             }
> 
>                             return $aData;
> 
>                         ]]></php>
>                     </userobj>
>                 </bindsto>
>             </datasource:PHPARRAY>
>         </datasources>
> 
>     </control>
> 
>     <elements>
>         <renderlet:LISTER name="mylist">
>             <datasource use="numbers" />
>            
>                 <template>
>                     <path>EXT:ameos_t3con07/res/templates/form.html</path>
>                     <subpart>###FORM###</subpart>
>                     <errortag>errors</errortag>
>           <alternaterows>###ROW1###,###ROW2###</alternaterows>
>                 </template>
>                
>       <pager>
> 
>         <rows>
>           <perpage>3</perpage>
>           <alternate>###ROW1###,###ROW2###</alternate>
>           <active>###ROWACT###</active>
>           <errortag>errors</errortag>
>         </rows>
> 
>         <nav window="7" />
> 
>         <template>
>           <path>EXT:ameos_t3con07/res/templates/form.html</path>
>           <subpart>###LIST_PAGER###</subpart>
>           <errortag>errors</errortag>
>         </template>
> 
>       </pager>
>     
> 
> 
>           <columns>
>               <column name="decimal" type="renderlet:TEXT" />
>               <column name="hexa" type="renderlet:TEXT" 
> label="Hexadecimal" />
>               <column name="octal" type="renderlet:TEXT" label="Octal" />
>               <column name="bin" type="renderlet:TEXT" label="Binary" />
>           </columns>
>         </renderlet:LISTER>
>     </elements>
> 
> </formidable>
> 
> 
> <!-- ###FORM### begin-->
> 
> 
>     <!--###BEFORE### begin--><!--###BEFORE### end-->
> 
>     <table class="lister-table" cellspacing="0">
>     <tr class = "bottom-row">
>             <td colspan = "4" align = "center">
>                 {PAGER}
>             </td>
>         </tr>
> 
>         <!-- ###ROWS### begin-->
> 
>             <!-- ###ROW1### begin-->
>             <tr class = "data-row-1">
>                 <td class="col-decimal">{decimal}</td>
>                 <td class="col-hexa">{hexa}</td>
>                 <td class="col-octal">{octal}</td>
>                 <td class="col-bin">{bin}</td>
>                
>             </tr>
>             <!-- ###ROW1### end-->
> 
>             <!-- ###ROW2### begin-->
>             <tr class = "data-row-2">
>                 <td class="col-decimal">{decimal}</td>
>                 <td class="col-hexa">{hexa}</td>
>                 <td class="col-octal">{octal}</td>
>                 <td class="col-bin">{bin}</td>
>                
>             </tr>
>             <!-- ###ROW2### end-->
> 
> 
>         <!-- ###ROWS### end-->
> 
>         <tr class = "bottom-row">
>             <td colspan = "4" align = "center">
>                 {PAGER}
>             </td>
>         </tr>
>     </table>
> 
> 
> 
> 
>        
> <!-- ###FORM### end-->
> 
> 
> <!-- ###LIST_PAGER### begin-->
> 
> 
>     <table border="0" cellpadding="0" cellspacing="0" width="100%">
>         <tr>
>             <td style="width: 40%;" align="left">
>                 <!-- ###LINKFIRST### begin-->
>                     <a 
> title="{LLL:EXT:ameos_formidable/api/base/rdt_lister/res/locallang/locallang.xml:pager.first.title}" 
> 
>                         href="{link}">назад</a>
>                 <!-- ###LINKFIRST### end-->
>                 <!-- ###LINKPREV### begin-->
>                     <a 
> title="{LLL:EXT:ameos_formidable/api/base/rdt_lister/res/locallang/locallang.xml:pager.previous.title}" 
> 
>                         href="{link}">дальше</a>
>                 <!-- ###LINKPREV### end-->
>             </td>
>             <td align="center">страница {page} из {pagemax}</td>
>             <td style="width: 40%;" align="right">
>                 <!-- ###LINKNEXT### begin-->
>                     <a 
> title="{LLL:EXT:ameos_formidable/api/base/rdt_lister/res/locallang/locallang.xml:pager.next.title}" 
> 
>                      
> href="{link}">{LLL:EXT:ameos_formidable/api/base/rdt_lister/res/locallang/locallang.xml:pager.next}</a> 
> 
>                 <!-- ###LINKNEXT### end-->
>                 <!-- ###LINKLAST### begin-->
>                     <a 
> title="{LLL:EXT:ameos_formidable/api/base/rdt_lister/res/locallang/locallang.xml:pager.last.title}" 
> 
>                      
> href="{link}">{LLL:EXT:ameos_formidable/api/base/rdt_lister/res/locallang/locallang.xml:pager.last}</a> 
> 
>                 <!-- ###LINKLAST### end-->
>             </td>
>         </tr>
>     </table>
> 
> 
> <!-- ###LIST_PAGER### end-->
> 
> 
> 
> 
> 
> 
> 
> 
> 


More information about the TYPO3-project-formidable mailing list