定制 thelia/store-seo-module 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thelia/store-seo-module

Composer 安装命令:

composer require thelia/store-seo-module

包简介

README 文档

README

Manage translation for your store SEO meta.

Installation

Manually

  • Copy the module into <thelia_root>/local/modules/ directory and be sure that the name of the module is StoreSeo.
  • Activate it in your thelia administration panel

Composer

Add it in your main thelia composer.json file

composer require thelia/store-seo-module:~1.2.0

Usage

Once activated, click on the configuration button of the module.

Then, select one of your store available language and fill inputs with your store title, description and keywords. Save and do it for each of your language.

They will be used on pages with no SEO meta configured.

Integration

Open the layout.tpl file of your template.

Check the Define some stuff for Smarty section at the top of the file, and be sur that you have this assignation:

{assign var="lang_locale" value={lang attr="locale"}}

Add this line in the <head> section, before the <title> tag :

{store_seo_meta locale=$lang_locale}

Also add this in the {block name="meta"}, after the <meta name="description"> tag :

{if $page_keywords}
    <meta name="keywords" content="{$page_keywords}">
{else}
    <meta name="keywords" content="{$default_keywords}">
{/if}

Finally, be sure that you have no {$page_title = {config key="store_name"}} declaration in your other template files.

统计信息

  • 总下载量: 20.92k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 3
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0
  • 更新时间: 2015-12-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固