[TYPO3-project-formidable] custom CSS to lister and other?
stefano cecere
scecere at krur.com
Fri Jan 18 13:49:11 CET 2008
hi Rego
yes, i can make custom tempalts with my classes..
but since i like very much the automatic tempaltes (and the class names) generated by formidable..
what i would really need was to ask it to NOT output any automatic css styles in the header.
so that i can easily style the lister from zero, as i like.
it could be just a simple option:
<output_css_header>NO</output_css_header>
i know i can override everything with CSS and the !important .. but i don't like it too much...
thanks!
stefano
Manuel Rego Casasnovas wrote:
> 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
>
>
More information about the TYPO3-project-formidable
mailing list