jlweb Posted March 27, 2018 Share Posted March 27, 2018 Bonjour à tous, Afin d'ajouter un champ "description2" à une catégorie de produits, j'ai créé plusieurs overrides : AdminCategoriesController.php & Category.php Dans AdminCategoriesController.php j'ai simplement ajouté le code suivant : $this->fields_form_override = array( array( 'type' => 'textarea', 'label' => $this->l('Résumé'), 'name' => 'description_2', 'autoload_rte' => true, 'lang' => true, 'autoload_rte' => true, 'hint' => $this->l('Invalid characters:').' <>;=#{}' ), ); return parent::renderForm(); Cela fonctionne et mon champ Description2 apparaît en dernier sur la fiche de la catégorie en back-office. Comment faire pour placer mon champ entre deux champs déjà existants et non à la fin tout en utilisant fields_form_override ? Merci d'avance 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