global section for the fields.ini file
Return to fields.ini file
Synopsis
The fields.ini file supports a __global__ section that applies to all fields in the current table. This is particularly useful for setting up default functionality that you wish to see on all fields except a few. For example you may wish to have all fields hidden from list view by default, and only explicitly enable a few. Same for CSV export or the details form.
Example 1: Hiding All Fields from List View
In the fields.ini file:
[__global__]
;; hide all of the fields from list view
visibility:list=hidden
[first_name]
;; show the first name in list view
visibility:list=visible
[last_name]
visibility:list=visible
;;.... etc....
In the above example we used the __global__ section to declare that we want all fields to be hidden from list view by default. Then we explicitly showed first_name and last_name in list view. In this case only first_name and last_name will appear in the list view.
See Also
- fields.ini file
- visibility:list