Zieg Posted September 19, 2018 Share Posted September 19, 2018 hi, i work on firefox with prestashop 1.6, and i would like to display multiple lines for one feature, like this : I overrided the file AdminFeaturesController.php, in the function initFormFeatureValue I replaced array( 'type' => 'text', 'label' => $this->l('Value'), 'name' => 'value', 'lang' => true, 'size' => 33, 'hint' => $this->l('Invalid characters:').' <>;=#{}', 'required' => true ), with array( 'type' => 'textarea', 'label' => $this->l('Value'), 'name' => 'value', 'lang' => true, 'hint' => $this->l('Invalid characters:').' <>;=#{}', 'required' => true ), Then I modified the front office template file themes/default/product.tpl, adding nl2br function like this : {$feature.value|nl2br|escape:'html':'UTF-8'} but now the FO displays the <br /> tag without interpreting them does anyone know how to make the page interprete those tags or why it reacted like this ? 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