Current Record: __global__ #106

Return to fields.ini file Table of Contents Synopsis Example 1: Hiding All Fields from List View See Also Synopsis The fields.ini f...

Current Record: __global__ #106

Return to fields.ini file Table of Contents Synopsis Example 1: Hiding All Fields from List View See Also Synopsis The fields.ini f...

__global__ section for the fields.ini file

[Permalink]

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

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