Jump to content

Enrechir tinyMCE dans le module Editeur page d'accueil


cizario

Recommended Posts

Bonjour;

 

Quelqu'un a t il trouvé une solution clean (override ...) pour étendre le tinyMCE du module Editorial (editeur de page d'accueil de Prestashop) ?

 

J'ai essayé cette solution; certe la solution est fonctionnelle (je l'ai testé PS1.5.3.1) avec les pages produits , catégories ... mais apparement n'a aucun impacte sur le module en question; j'ai cru que le fichier form.tpl est appelé par défaut par n'importe quelle instance de tinyMCE ;

 

J'ai essayer dans le fichier /modules/editorial/editorial.php de voir comment étendre tinyMCE; mais j'arrive pas à faire grande chose

 

$this->fields_form[0]['form'] = array(
  'tinymce' => true, // y a t il d'autres options ; configurations ... 
  'legend' => array(
   'title' => $this->displayName,
   'image' => $this->_path.'logo.gif'
  ),
  'submit' => array(
   'name' => 'submitUpdateEditorial',
   'title' => $this->l('   Save   '),
   'class' => 'button'
  ),
  'input' => array(
   array(
 'type' => 'text',
 'label' => $this->l('Main title'),
 'name' => 'body_title',
 'lang' => true,
 'size' => 64,
 'hint' => $this->l('Appears along top of homepage'),
   ),
   array(
 'type' => 'text',
 'label' => $this->l('Subheading'),
 'name' => 'body_subheading',
 'lang' => true,
 'size' => 64,
   ),
   array(
 'type' => 'textarea',
 'label' => $this->l('Introductory text'),
 'name' => 'body_paragraph',
 'lang' => true,
 'autoload_rte' => true,
 'hint' => $this->l('Text of your choice; for example, explain your mission, highlight a new product, or describe a recent event.'),
 'cols' => 60,
 'rows' => 30
   ),
   array(
 'type' => 'file',
 'label' => $this->l('Homepage logo'),
 'name' => 'body_homepage_logo',
 'display_image' => true
   ),
   array(
 'type' => 'text',
 'label' => $this->l('Homepage logo link'),
 'name' => 'body_home_logo_link',
 'size' => 33,
   ),
   array(
 'type' => 'text',
 'label' => $this->l('Homepage logo subheading'),
 'name' => 'body_logo_subheading',
 'lang' => true,
 'size' => 33,
   ),
  )
 );

 

Merci

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...