spielkind Posted January 12, 2017 Share Posted January 12, 2017 Hi Folks, i'm trying to dd a Multilingual Field to the global contact setting part on the AdminStoreController (where you con configure the Shop Name and Shop-Email). I've added an Override for AdminStoreController with this content: class AdminStoresController extends AdminStoresControllerCore{ protected function _getDefaultFieldsContent() { $formFields = parent::_getDefaultFieldsContent(); $formFields = array_merge($formFields, array( 'MY_MULTILINGAL_TEST_SETTING' => array( 'title' => $this->l('My ML Test'), 'hint' => $this->l('Test for ML Settings field'), 'required' => false, 'type' => 'textarea', 'lang' => true, 'cols' => 30, 'rows' => 5, ), ) ); return $formFields; } } The field is working fine and Settings is stored like all other, but it is not Multilingual. I've set lang to true for this field, like i did several times in other customisations where it worked just fine. Did i miss something here? My PS Version is 1.6.1.10 Link to comment Share on other sites More sharing options...
spielkind Posted January 12, 2017 Author Share Posted January 12, 2017 Ok, i found the sollution myself. i had to change 'type' => 'textarea', to 'type' => 'textareaLang', Now it's working. i'm just wondering why thes use two different concepts for the same thing. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now