Jump to content

Grouping attributes with addFieldSet

From NusaATK
Revision as of 22:39, 11 June 2008 by Jgarifuna (talk | contribs) (New page: The addFieldSet() function was introduced to ATK on June 11, 2008. Prior to this the addGroup() function was used, but subsequently dropped from the core of ATK due to compatibility issues...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

The addFieldSet() function was introduced to ATK on June 11, 2008. Prior to this the addGroup() function was used, but subsequently dropped from the core of ATK due to compatibility issues.

To make use of the addFieldSet() function, you need to have an ATK build created after June 11, 2008.

Assumming we had the following node:

AF_UNIQUE

Now let's group the following attributes so they appear on the same row:

Group0 will contain: department and manager Group1 will contain: name salary and the notes will have the label displayed on top of the attribute as opposed to the left

Below is the revised version of our node to accommodate for these enhancements using the addFieldSet() function:

AF_UNIQUE

The addFieldSet() function is defined as follows on class.atknode.inc:

{{{ addFieldSet($name, $template, $flags=0, $sections=NULL, $order=0)

}}}

Until next time,

Jorge Garifuna [1]