[TYPO3-project-formidable] custom CSS to lister and other?

Manuel Rego Casasnovas mrego at igalia.com
Fri Jan 18 11:25:50 CET 2008


Hi Stefano,

if you're using renderlet:LISTER your XML cofig will be something like:
<template>
   <path>EXT:my_ext/res/templates/pi1/list.tpl</path>
   <subpart>###LIST###</subpart>
   <alternaterows>###ROW###</alternaterows>
</template>
<pager>
   <template>
      <path>EXT:my_ext/res/templates/pi1/list.tpl</path>
      <subpart>###LIST_PAGER###</subpart>
   </template>
   <rows>
      <perpage>10</perpage>
   </rows>
</pager>


And in your file "my_ext/res/templates/pi1/list.tpl" you could define
your lister as you want. For exmpample:
<!-- ###LIST### begin-->
<div class="my_list">
<ul>
   <!-- ###ROWS### begin-->
      <!-- ###ROWS### begin-->
         <li><strong>{column1.label}</strong>: {column1}</li>
      <!-- ###ROWS### end-->
   <!-- ###ROWS### end-->
</ul>
</div>

{PAGER}

<!-- ###LIST### end-->

<!-- ###LIST_PAGER### begin-->
<div class="my_pager">
   <!-- ###LINKPREV### begin-->
      <a href="{link}">previous</a>
   <!-- ###LINKPREV### end-->
   <!-- ###LINKNEXT### begin-->
      <a href="{link}">next</a>
   <!-- ###LINKNEXT### end-->
</div>
<!-- ###LIST_PAGER### end-->



This is a very simple example, but if you use your own template you can
generate HTML as you want with "class", "divs", ...

For insert a pager you have to use "{PAGER}", this tag will be replaced
for the HTML generated for the subpart ###LIST_PAGER###.

Best regards,
   Rego


-- 
Manuel Rego Casasnovas 
Computer Science Engineer 
mailto:mrego at igalia.com 
Tel: +34 986 10 76 10 
Fax: +34 981 91 39 49 
Igalia - http://www.igalia.com


More information about the TYPO3-project-formidable mailing list