Hi to all, i hope this is not a newby question..
If i want to customize my registration form (for example create a one column form, instead of two column), where i can do this?
Please help me, i'm going crazy....
Tizano.
Hi to all, i hope this is not a newby question..
If i want to customize my registration form (for example create a one column form, instead of two column), where i can do this?
Please help me, i'm going crazy....
Tizano.
I could, for example, edit file member_default.tpl, and write, instead of:
write the output html code:Code:<?php echo $this->fields; ?>
But it seems then, that the validation does'nt work fine...Code:... <tr class="row_0 row_first even"> <td class="col_0 col_first"><label for="ctrl_firstname" class="validate['required']">First name</label><span class="mandatory">*</span></td> <td class="col_1 col_last"><input type="text" name="firstname" id="ctrl_firstname" class="text validate['required']" value="" maxlength="255" /></td> </tr> <tr class="row_1 odd"> <td class="col_0 col_first"><label for="ctrl_email" class="validate['required','email']">E-mail address</label><span class="mandatory">*</span></td> <td class="col_1 col_last"><input type="text" name="email" id="ctrl_email" class="text validate['required','email']" value="" maxlength="255" /></td> </tr> <tr class="row_2 even"> <td class="col_0 col_first"><label for="ctrl_username" class="validate['required','extnd']">Username</label><span class="mandatory">*</span></td> <td class="col_1 col_last"><input type="text" name="username" id="ctrl_username" class="text validate['required','extnd']" value="" maxlength="64" /></td> </tr> ...
Where is my mistake?
If you just want to make your form 1 column, just make sure to choose "tableless layout", and the rest you can do with CSS.
Is there anything else you need to do besides that?
Brian
Thanks a lot for the answers...
The problem is that i can't see the choose "tableless layout"...
I'm not creating a form in Form Generator, i'm using Module "registration" and the form associated with it by default in typolight.
I'm not understanding something?
Edit your module and look under "Template settings" .. thers a checkbox there "Tableless layout"
Probably you're using a different version of typolight.
In my module [type: Registration], i can't see, under "template settings" any checkbox, only one combobox [where you can set your template [default or grouped])....
My version is: 2.7.5
Thanks a lot for the answers...
Tiziano.
yeah, 2.8.1.... this version has this option.
As for, i don't see that as working.... class is a CSS selector, not code???class="text validate['required','extnd']
Maybe you could rewrite your ORIGINAL member_default.tpl and just get rid of all the table markup, and/or replace it with divs.
Thanks... I tryed to replace my "member_default.tpl" with my personal code (with some php because in the DCA there aren't single fields without html table tag), but the validation method don't work propertly (no error message are displayed).
Now i install (or update) to version 2.8.1.
Thanks boys.
Tiziano.
Bookmarks