如何在prestashop模块中更改元标题? [英] How to change meta title in prestashop module?

查看:125
本文介绍了如何在prestashop模块中更改元标题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是prestashop 1.6,并且一个模块无法在SEO& URL中进行编辑,要更改的内容是meta. 实际上,我具有默认的pretashop元标题. 如何为该模块添加自定义header.tpl?

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 ?

谢谢您的帮助

托尼

推荐答案

假设您正在谈论带有控制器的模块,
您可以在基本文件/modules/mymodule/mymodule.php
中添加 在方法__construct()内,
$this->controllers = array('controller_file_name');这样的对象,其中controller_file_name是在前台生成页面的文件.

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.

完成此操作后,您将需要重新安装模块,并且此添加的对象将在SEO& URL中生成一个新页面,您可以在其中更改所有元数据(标题,描述和关键字).

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

您可以在bankwire,check和blocknewsletter中看到此模块的一些示例.

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

这篇关于如何在prestashop模块中更改元标题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆