How (or where) must I specify new dropdown in my custom module installation to use in this module?
How (or where) must I specify new dropdown in my custom module installation to use in this module?
YohN,
You can add/remove items from a dropdown in Admin->Studio->Edit Drop Downs. You can create new drop downs and place them in a module in Admin->Studio->Edit a Module->...and so on.
No, this way is not acceptable - I want to INSTALL new dropdown with my custom module and without any custom handy input.Originally Posted by eggsurplus
Create it in vardefs.php and to field_arrays.php then add it to your EditView.* and DetailView.*.
You also have to create the options of the dropdown in custom/Extension/application/Ext/Language/en_us.<module_name>.php ( I think)
Create a language file in your install (e.g. mymodule-en_us.lang.php or whatever lang you are using) and add the dom in there with app_list_strings:
$app_list_strings['my_custom_dom']= array (
'' => '',
'entry1=> 'entry1',
'entry2' => 'entry2',
);
and in your manifest add to the installdefs:
'language'=> array(
array('from'=> '<basepath>/language/application/mymodule-en_us.lang.php',
'to_module'=> 'application',
'language'=>'en_us'
),
),
Now you can references my_custom_dom in your module.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks