Current Record: group #28

group directive in fields.ini file The group directive allows you to declare that certain fields of your table should be grouped together o...

Current Record: group #28

group directive in fields.ini file The group directive allows you to declare that certain fields of your table should be grouped together o...

group

[Permalink]

group directive in fields.ini file

The group directive allows you to declare that certain fields of your table should be grouped together on the edit form and the view tab (and other logical places). For example, fields like address, city, state, country, postal_code would likely be grouped together as address_info. Grouping the fields together will make the fields appear in a section of their own in the view tab and the edit form.

E.g. In your fields.ini file:

[address]
   group=address_info

[city]
    group=address_info

[state]
    group=address_info

[country]
    group=address_info

[postal_code]
    group=address_info

Configuring the Group as a Whole

You can also configure your group in the fields.ini file by adding a fieldgroup:NAME section, where NAME is the name of the group. E.g.

[fieldgroup:address_info]
    label="Address Information"
    description = "Please enter your address information below"

See also:

blog comments powered by Disqus
Powered by Xataface
(c) 2005-2024 All rights reserved