Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Change sort order for admin form fields

Quote Reply
Change sort order for admin form fields
Hi,

I've recently added a new field to a table and its appearing at the bottom of the forms in the admin section.

I'd prefer to group it with other fields further up the form (I'm having to scroll past less used fields to get to it). Is there any way I can input a custom sort order for admin form fields?

Maybe an option in the table setup - Field Sort Order: 1,10,5,8,9,15,6,7,2,3,11,4 ... etc.?

Any help appreciated.

All the best
Shaun
Quote Reply
Re: [qango] Change sort order for admin form fields In reply to
Okay,

I found a way to do it, but want to know if it will have any adverse effect?

I updated the .def file for the table and changed the value for 'pos' => 'xx', for each of the fields into the order I wanted. The admin forms now display the fields in my specified order.

What I really need to know is will this have any negative effect on how the admin works?

Any advice appreciated.

All the best
Shaun
Quote Reply
Re: [qango] Change sort order for admin form fields In reply to
It should be ok.

TheStone.

B.
Quote Reply
Re: [TheStone] Change sort order for admin form fields In reply to
Thanks Smile

Shaun
Quote Reply
Re: [qango] Change sort order for admin form fields In reply to
Warning: the custom ordering you imposed by changing the pos value in the .def file will be lost when you do a 'Resync Database'...

Ivan
-----
Iyengar Yoga Resources / GT Plugins
Quote Reply
Re: [yogi] Change sort order for admin form fields In reply to
Ivan,

Thanks for the tip - I'll remember that Smile

All the best
Shaun