dongmie3987067 2014-10-13 10:11
浏览 7

Prestashop覆盖管理模板

I have the code (for prestashop 1.5):

class AdminTestController extends AdminController
{
    public $identifier = 'id_test';
    function __construct() {
        parent::__construct();
        $this->table = 'test';
        $this->className = 'test';

        /*$this->fields_list = array(
        'id_test' => array('title' => $this->l('ID'), 'align' => 'center', 'width' => 25),
        'content' => array('title' => $this->l('Test'), 'width' => 'auto')
        );*/

        $this->fields_options = array(
                    'general' => array(
                    'title' =>  $this->l(''),
                    'icon' =>   'tab-preferences',
                    'fields' => array(
                            'TEST' =>  array(
                            'type' => 'textarea',
                            'label' => $this->l('TEST'),
                            'title' => $this->l('TEST'),
                            'name' => 'test',
                            'autoload_rte' => true,
                            'lang' => true,
                            'rows' => 15,
                            'cols' => 70,
                            //'hint' => $this->l('Invalid    characters:').' <>;=#{}'
                            )
                    ),
                    'submit' => array(
                                'title' => $this->l('Save'),
                                'class' => 'button'
                            )       
                    )
                );
    }
}

I want to attach tinyMCE to my textarea.I need to override one template but i can't find wich one.

I tried:

template/controllers/test/list/list.tpl template/controllers/test/form.form.tpl

How can i override the template for my controller ?

  • 写回答

1条回答 默认 最新

  • duanfu5239 2014-10-14 09:08
    关注

    Just for information. I override option/option.tpl; Now it works.

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡接入微信支付商户号收款
  • ¥15 如何获取烟草零售终端数据
  • ¥15 数学建模招标中位数问题
  • ¥15 phython路径名过长报错 不知道什么问题
  • ¥15 深度学习中模型转换该怎么实现
  • ¥15 HLs设计手写数字识别程序编译通不过
  • ¥15 Stata外部命令安装问题求帮助!
  • ¥15 从键盘随机输入A-H中的一串字符串,用七段数码管方法进行绘制。提交代码及运行截图。
  • ¥15 TYPCE母转母,插入认方向
  • ¥15 如何用python向钉钉机器人发送可以放大的图片?