Customizing the atkListAttribute

From Achievo/ATK Wiki

Jump to: navigation, search

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",
Personal tools
Navigation