[TYPO3] FE template for a plugin
Xavier Perseguers
typo3 at perseguers.ch
Fri Aug 15 12:28:21 CEST 2008
Hi all,
I need a way to template the output of my plugin. The weird thing is
that I need a way to map a multidimensional array of data (2 dimensions)
to FE view.
Now I hard coded a table that may be styled with CSS but I would like to
get a bit further to let the user map the NxM data matrix to divs for
instance or event something more complex such as
data:
row1_1, row1_2, row1_3
row2_1, row2_2, row2_3
output:
<div class="something">
<table>
<tr>
<td>row1_1</td>
<td>row1_2</td>
<td>row1_3</td>
</tr>
</table>
</div>
<div class="something">
<table>
<tr>
<td>row2_1</td>
<td>row2_2</td>
<td>row2_3</td>
</tr>
</table>
</div>
I think FCE with sections would be the way to go and it would mean the
user would have to create a FCE with proper bidimensional SO/CO stuff
and then assign it as rendering option to the plugin.
What do you think?
Does someone has experience in dynamically creating FCE? (there already
was such a post a few days ago but it is perhaps not the way to go or it
is perhaps best "instantiated" here).
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
More information about the TYPO3-english
mailing list