room9/globalmetadata 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

room9/globalmetadata

Composer 安装命令:

composer require room9/globalmetadata

包简介

Allows setting global MetaTitle and MetaDescription fields that can be overridden on individual pages.

README 文档

README

This module lets you set a default MetaTitle and MetaDescription in site settings that can be overridden on individual pages.

Maintainer Contacts

Nathan Cox (nathan@room9.co.nz)

Requirements

  • SilverStripe 3.2+

Documentation

GitHub

Installation Instructions

Unzip into a root folder called globalmetadata and run dev/build.

Coming soon: composer

Usage Overview

If MetaTitle is enabled it adds a field to every page. Then the page's MetaTitle() is called (eg in a template) it will use the value of this field first. If the field is empty it will fall back to the MetaTitle defined in Settings. If that is empty it will use the page's Title. If you're using $MetaTags in the template with show title enabled it will output the title tag using MetaTitle(). Otherwise it can be accessed in templates using $MetaTitle.

MetaData works the same way as MetaTitle. If a page doesn't have a MetaDescription set then $MetaTags() will output a meta description element containing the default description from Settings.

Config options:

SiteConfig:
  show_meta_title: true					// turn on/off the meta title fields and behaviour
  show_meta_description: true			// turn on/off the meta description field and behaviour
  meta_title_description: ''			// set text that appears under the default meta title field
  meta_description_description: ''		// set text that appears under the default meta description field

Page:
  meta_title_description: ''			// set text that appears under the page meta title field
  meta_description_description: ''	    // set text that appears under the page meta description field

Issues

Please create an issue for any bugs you've found, or features you're missing.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-03-01

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固