i need to organize the fields by form groups for one of my sites.
so i've written a patch to do this.
with this patch, you can define the form groups at the flexinode admin page.
i've written this for a drupal 4.6 install extended with the form_group functions of HEAD. so this patch makes already use of the collapsible form groups - feature, but is based on flexinode 4.6
so to use it on drupal 4.6 you'll need to update form_group in common.inc and add the form_group_collapsible() function. existing flexinode installations can update their database with the flexinode update feature (flexinode/update)
if the patch doesn't apply cleanly, try to apply first this patch
http://drupal.org/node/30792
i've not tested this agains flexinode HEAD, hope there aren't too much changes and it applies too.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | flexinode_module_patched-for-search&search_style&patch1&truncate&groups¬found.txt | 50.17 KB | DeVill-1 |
| flexinode.groups.patch | 18.92 KB | fago |
Comments
Comment #1
Patrick Nelson commentedFago,
Is there any way that this can be updated for the latest (4.7) version of flexinode?
Failing that, flexinode developers, is it possible that this could make it into flexinode.module as standard?
Regards
Patrick
Comment #2
fagoif there is enough interest, so that it would be included in flexinode 4.7, i would write a patch for it... !?
however, it complicates the flexinode-code a bit.
Comment #3
Patrick Nelson commentedFago,
Well I, for one, register my interest! It seems a shame to not make use of the 4.7 features in flexinode. I'm not a brilliant coder, but if there is anything I can do to help, please let me know.
Regards
Patrick
Comment #4
DeVill-1 commentedI'm using this patch in my Drupal 4.6.6
I do all my patches by hand since I haven't been able to figure out how to use the patching software.
Before I added it, everything was working properly, but now I'm getting this message at the top when I try to create my flexinode content type.:
user error: Unknown column 'g.weight' in 'field list'
query: SELECT IFNULL(g.weight,f.weight) AS groupweight, f.* FROM flexinode_field f LEFT JOIN flexinode_group g ON f.group_id=g.group_id AND f.ctype_id=g.ctype_id WHERE f.ctype_id=1 ORDER BY groupweight ASC, weight ASC, label ASC in /home/devill/public_html/includes/database.mysql.inc on line 66.
I'm not sure where I went wrong.
Any idea how I can fix this problem?
I'm still a newbie to webmastering.
If you need me to provide any other info, let me know.
Thanks.
P.S.,
I'm trying to attach a copy of my Flexinode module, including all the patches I added to it.
It was working with these other patches until I added the Groups patch you posted.
Comment #5
fagothere are database changes you need to apply. try the untested update function i included in the patch at 'flexinode/update'.
i am planning to get this and perhaps more into flexinode 4.7.
Comment #6
DeVill-1 commentedOkay. I figured it out.
In your 'flexinode/update', you didn't include the line:
+ weight int(10) NOT NULL default '0',
as was included in the flexinode.pgsql patch that was listed above it.
So I went back to my database, dropped the Group table, then resubmitted it INCLUDING the missing line.
No error message anymore.
Thanks tho'.
Now to go try it out.
Comment #7
fagoI'm not going to this for flexinode 4.7 any more, but perhaps I'll have a look at doing this with cck.
so I'm setting this to won't fix for now.