Jump to content

Customizing the atkListAttribute

From NusaATK
Revision as of 07:38, 4 June 2011 by bahtiar (talk | contribs) (Created page with "{{howto|easy|Ivo Jansch}} == Changing the text of the 'no value' item == By default, if a list attribute is not a required fieild, the list contains a 'No Value' i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

ATK Howto: Customizing the atkListAttribute

Complexity: easy
Author: Ivo Jansch

List of other Howto's

Changing the text of the 'no value' item

By default, if a list attribute is not a required fieild, the list contains a 'No Value' item as the first entry. You may come across situations where you want to change this to something else.

To do this, there are a number of strings you can add to your language file (e.g. modules/yourmodule/languages/en.lng):

// Change all list attribs in the whole application
"list_null_value" => "No value selected",

// Change all list attribs in the 'project' node.
"project_list_null_value" => "No value selected",

// Change only the status field in the project node.
"project_status_list_null_value" => "Unknown project status",