Results 1 to 8 of 8

Thread: Custom registration form

  1. #1
    User
    Join Date
    07-03-09.
    Posts
    31

    Default Custom registration form

    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.

  2. #2
    User
    Join Date
    07-03-09.
    Posts
    31

    Default Re: Custom registration form

    I could, for example, edit file member_default.tpl, and write, instead of:
    Code:
    <?php echo $this->fields; ?>
    write the output html code:
    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> 
    ...
    But it seems then, that the validation does'nt work fine...

    Where is my mistake?

  3. #3
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default Re: Custom registration form

    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

  4. #4
    User
    Join Date
    07-03-09.
    Posts
    31

    Default Re: Custom registration form

    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?

  5. #5
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Custom registration form

    Edit your module and look under "Template settings" .. thers a checkbox there "Tableless layout"

  6. #6
    User
    Join Date
    07-03-09.
    Posts
    31

    Default Re: Custom registration form

    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.

  7. #7
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Custom registration form

    yeah, 2.8.1.... this version has this option.

    As for
    class="text validate['required','extnd']
    , i don't see that as working.... class is a CSS selector, not code???

    Maybe you could rewrite your ORIGINAL member_default.tpl and just get rid of all the table markup, and/or replace it with divs.

  8. #8
    User
    Join Date
    07-03-09.
    Posts
    31

    Default Re: Custom registration form

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •