Page 1 of 1

Grouping fields issue

PostPosted: Fri Mar 13, 2009 8:48 pm
by kokoro
Hello again,

I am grouping fields in the details view but am having trouble getting the "details" group name changed and also can't group the field that is by default set as details to a different group.

When I try to assign the field that is currently categorized as details to a different group all of the fields for the record disappear.

I'm grouping using the following syntax:

[firstnameeng]
widget:label="First Name"
group=English Name

[lastnameeng]
widget:label="Last Name"
group=English Name

This puts the first name and last name in the "English Name" group. Student ID is the first field (also the key) in this table and it gets set to 'details' by Xataface. If I try to change that to a different group by using

[studentid]
widget:label="Student ID"
group=Student Information

Then all of the fields disappear...

Did I just explain the problem twice.... :oops:

Jason

PostPosted: Sat Mar 14, 2009 8:27 am
by shannah
Grroup names should not contain spaces. If you want to use a label for a fieldgroup that does contain a space, use the [fieldgroup:name] section in your fields.ini file.

e.g.
Code: Select all
[fieldgroup:address]
    label="Address Information"

[street]
    group=address

[city]
    group=address


As for the default group, you can change the label o this group by adding a
[fieldgroup:__main__]
section to your fields.ini file and specifying a label for it.

PostPosted: Sat Mar 14, 2009 4:46 pm
by kokoro
Steve,

Thanks. I'm still having an issue though.

I tried the [fieldgroup:__main__] with a label as follows

[fieldgroup:__main__]
label="Student ID"

but this also makes all of the fields in the record disappear.

Also, the spaces in the group names did not seem to be creating problems. The space was appearing but maybe this can cause problems down the road?

Jason

Re: Grouping fields issue

PostPosted: Sun Feb 21, 2010 6:03 am
by Bart
I have the same problem with version 1.2.3b2 1700.

As soon as I add [fieldgroup:__main__] to my fields.ini, all of the fields disappear in the view section. In the edit section they still exist but the group is still named 'Details'.

This is what my fields.ini looks like for testing:
Code: Select all
[fieldgroup:__main__]
label="test"

Re: Grouping fields issue

PostPosted: Mon Feb 22, 2010 3:10 pm
by shannah
This is the same issue as: viewtopic.php?f=4&t=5168