Jump to content

Add Multilingual Fields to AdminStoresController


spielkind

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...