承接 chrometoaster/silverstripe-metadescription-fallback 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

chrometoaster/silverstripe-metadescription-fallback

最新稳定版本:2.2.0

Composer 安装命令:

composer require chrometoaster/silverstripe-metadescription-fallback

包简介

An extension providing a mechanism to populate meta description header from content fields when MetaDescription is empty

README 文档

README

Requirements

  • SilverStripe 4.0 and above
  • PHP 5.6 and above

Maintainers

Description

This module applies a data extension to SiteTree providing a mechanism to populate meta description header from a defined set of content fields when the default MetaDescription is empty.

The list can use names of fields, names of methods or leverage the the dot notation to reference relations or methods, as outlined in the configuration example below.

Use with Dataobjects

The extension this module provides can also be applied to dataobjects, for example if you are outputting them as pages and need meta tags included in the source of the page.

In this case the MetadataTagsTrait also needs to be used by those dataobjects.

Installation with Composer

composer require "chrometoaster/silverstripe-metadescription-fallback"

Example configuration

In your config.yml, define the list of fields:

Chrometoaster\SEO\DataExtensions\MetaDescriptionFallbackExtension:
  fallback_fields:
    - Description
    - Introduction
    - Content.Summary
    - RelatedPages.First.MetaDescription

Run dev/build either via opening the url http://<your-host>/dev/build in a browser or by running the dev/build task using CLI.

Reporting Issues

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

Changelog

For details of updates, bugfixes, and features, please see the changelog.

TODO

  • Add unit tests for fallback mechanism.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-04-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固