How to change meta title in prestashop module?

情到浓时终转凉″ 提交于 2020-01-07 09:26:35

问题


I'm using prestashop 1.6 and one module is not editable in SEO&URL, to change is meta. Actually, i have the default pretashop meta title. How can i add a custom header.tpl for this module ?

Thank you for your help

Tony


回答1:


Assuming you are talking about a module with a controller,
you can add in the base file /modules/mymodule/mymodule.php,
inside the method __construct(),
a object like this $this->controllers = array('controller_file_name');, where the controller_file_name is the file which generate the page in the front office.

Once made this, you will need to re-install the module and this added object will generate a new page in the SEO&URL where you could change all the metas (title, description and keywords).

You can see some examples of this modules in the bankwire, cheque and blocknewsletter.



来源:https://stackoverflow.com/questions/51747636/how-to-change-meta-title-in-prestashop-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!