首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Prestsahop Meta标题

Prestsahop Meta标题
EN

Stack Overflow用户
提问于 2015-02-13 17:06:48
回答 2查看 1.2K关注 0票数 1

我已经创建了一个自定义模块来显示一些图像和文本。我想要这个模块的标题,因为我不想在网站上有标题。我需要一个单独的标题,所以我想我需要这个模块有一个不同的标题,或者我如何才能只有这个模块的标题?元标题的代码是:

代码语言:javascript
复制
meta charset="utf-8" />
<title>{$meta_title|escape:'html':'UTF-8'}</title>
{if isset($meta_description) AND $meta_description}
<meta name="description" content="{$meta_description|escape:'html':'UTF-8'}" />
{/if}

所以我需要头衔作为我的头衔

有人能帮我吗?

EN

回答 2

Stack Overflow用户

发布于 2015-02-13 18:33:56

使用模块创建的页面可能是FrontControllers。否则,现有页面已经有了它们的用途和meta标记。

如果您确实使用FrontController创建页面,那么您可以在SEO &URL>&URL> Add中为您的页面输入元信息。在那里你可以为你的页面和仪表信息输入自定义的url-rewrite。

票数 2
EN

Stack Overflow用户

发布于 2015-02-16 04:28:41

@gskema这是我的模块php代码:

代码语言:javascript
复制
if (!defined('_PS_VERSION_'))
exit;

class mymodule5 extends Module
{
    /* @var boolean error */
    protected $_errors = false;

    public function __construct()
    {
        $this->name = 'mymodule5';
        $this->tab = 'front_office_features';
        $this->version = '1.0';
        $this->author = 'author';
        $this->need_instance = 0;

        parent::__construct();

        $this->displayName = $this->l('mymodule5');
        $this->description = $this->l('Pagina livrare');
    $this->confirmUninstall = $this->l('Are you sure you want to delete this module?');
    }

    public function install()
   {
        if (!parent::install())
            return false;
        return true;
    }

    public function uninstall()
    {
        if (!parent::uninstall())
        return false;
    return true;
}

    public function countAllProducts()
    {
        return Db::getInstance()->getValue('SELECT COUNT(*) from        ps_product WHERE active = 1');
    }
    public function setMedia()
{
parent::setMedia();
$this->addCSS(__PS_BASE_URI__.'modules/'.$this->module->name.'/css/'.$this-    >module->name.'.css');

}  
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/28495915

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档