I'm sure it's really easy as this module is GREAT and is mostly CSS, but could you make a D6 version?

If not, I can volunteer to make one.

CommentFileSizeAuthor
#11 314683-formtable.patch1.89 KBlarskleiner

Comments

usonian’s picture

Assigned: Unassigned » usonian

It would be a good exercise for me - I will try and get to it this week, but if you can't wait I'd certainly accept code for a D6 version.

krampi’s picture

Hi!

I need this module in drupal 6.x.

If you make that in drupal 6.x version please send me a download url.

Thanks.

Krampi

barrett’s picture

I've gotten a D6 version working. What's the best way for me to get the code to you? I can put together patch files or just send you the edited .info and .module files.

For the moment, I've posted the revised version on my site: http://datasmith.net/node/17

Great module, by the way. Thanks for putting it together.

usonian’s picture

Thanks for taking the initiative Barrett, I will try and take a look sometime soon.

Anonymous’s picture

Works great. Thanks!!!

KingMoore’s picture

anything we can do to get this committed?

usonian’s picture

Thanks for the bump KingMoore, I will try and look at this soon.

KingMoore’s picture

Excellent. In the meantime I have tested the D6 version and it is working for me. Just a couple of thoughts:

- would it make sense to have the module automatically set the appropriate elements to tree=>true so we retain the hierarchy in $form_values?

- would it make sense to have the module automatically add

'#prefix' => '<td>',
'#suffix' => '</td>' 

to row child elements, making the integration a bit more seemless?

just a couple of thoughts, they could very well be the wrong thoughts :)

sime’s picture

hey @KingMoore :)

good thoughts IMO. That would be very useful.

rc2020’s picture

Hey,

I have tried to use this module (6x branch) but my code doesen't seem to be working. I am using this code as an implementation of hook_form_alter(), and I have used the code from the readme.txt. My code is here:

$form['formtable'] = array(
      '#type' => 'formtable',
      '#title' =>('Formtable'),
      );
      
      $form['formtable']['row1'] = array(
      '#type' => 'formrow',
      );
      
      $form['formtable']['row1']['taxonomy']['tags']['35'] = array(
      '#prefix' => '<td>',
      '#suffix' => '</td>',
      );
      
      $form['formtable']['row1']['taxonomy']['tags']['30'] = array(
      '#prefix' => '<td>',
      '#suffix' => '</td>',
      );

Is there something wrong with the way I have set this up? I'm very much looking to try to put form items in tables.

If you could please help me figure out what I am doing wrong it would be very helpful!!!!

Thanks!

larskleiner’s picture

Status: Active » Needs review
StatusFileSize
new1.89 KB

Is this module still maintained?

I rolled a quick patch against version 5.x-1.0 to update the module for D6. I did a bit of cleanup as well as 'form_table_element' was wrongly used as the module's namespace in some places. I also changed the package to 'Other' in the info file as this module in my mind doesn't qualify as a development tool.

If you need help to commit this patch and create a 6.x-1.0 branch I'm happy for you to add me as a co-maintainer.