Developing Subforms

From ARK
Revision as of 17:16, 26 February 2009 by Guy (talk | contribs)

Jump to: navigation, search

Subforms are the key building blocks of the ARK user interface. Therefore this is probably one of the key areas we expect plugins and community contributions. These notes set out some of the key principles of developing a new subform.

Overview

Make sure that your code has the correct header block at the top. Do not just copy some old code. Many older subforms are badly formed.

Process of user input should go at the top. This is followed by error reporting and by data and form display.

Settings

More detailed information about how to configure a subform can be found in the administration manual subforms page. It is important that developers conform to rules fo settings in subforms.

Settings will be passed to the subform by the page in the form of an array called sf_conf. This contains the obligatory and optional settings set up for the subform in the settings file. The

View States

Edit States