You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alan Menant <am...@jouve.fr> on 2007/07/20 17:47:36 UTC

Layout on many columns

Hello,

I'm using Cocoon2.2 and I would like to layout forms (with CForms) on 3 
or 4 columns and many rows, with aligned labels and fields.
Like this example : http://alliage.ch/formulaire.html but with 3 
columns, and separating rows with fieldsets.

I can do it by doing :

<tr>
    <td>
        <fi:group>
         <fi:styling layout="columns">

	    <fi:items>
	      <ft:widget id="name"/>
	      <ft:widget id="surname"/>
	      <ft:widget id="birthday"/>
	    </fi:items>
	</fi:group>
   </td>
</tr>
<tr>
	<td>
		...
	</td>
</tr>
<tr>
	<td>...</td>
</tr>


But it's not very flexible...
Is there a simple way doing it with CForms or do I need modify the XSL forms-samples-styling ?

Thanks.