ATK Attribute Flags
Intro
Most attributes have a $flags param in the constructor. You can pass multiple flags by concatting them with a pipe symbol (|).
Example:
$this->add(new atkAttribute("name", AF_SEARCHABLE));
Available flags
This is a list of flags that are common to all attributes. (some attributes have additional flags)
AF_HIDE
Hide an attribute in the add/edit/admin/view actions. this is a synonym for AF_HIDE_LIST|AF_HIDE_EDIT|AF_HIDE_VIEW|AF_HIDE_ADD
AF_HIDE_LIST
Hide an attribute in record lists
AF_HIDE_EDIT
Hide an attribute in edit pages
AF_SEARCHABLE
Add search capability for this attribute to recordlists.
AF_RELATION_AUTOLINK
Normally, an atkManyToOneRelation allows you only to select one of the existing records. If you add the AF_RELATION_AUTOLINK flag, 2 features are added: the user is now able to edit the records from here, or add new records that are not yet in the list. The availability of these 2 features naturally depends on the access rights of the user. Users without edit/add privilege, will not see the links.
Original Poster: Ivo