定制 dmf/seotool 二次开发

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

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

dmf/seotool

Composer 安装命令:

composer require dmf/seotool

包简介

SeoTool provides meta information and additional title properties for navigation.

README 文档

README

This plugin provides some useful NodeType properties for pages. Navigation labels, link titles and some meta content like description and canonical tags will be provided.

Installation

Clone this repository into your application folder:

* cd ROOT/Packages/Application
* git clone git@github.com:dohomi/Neos-Plugin-DMF.SeoTool.git DMF.SeoTool

Then check if the plugin needs to get activated inside of your package management. Check if the plugin is listed:

./flow package:list
./flow package:activate dmf/seotool

Use of this plugin

You will see additional fields inside of your page properties. You can fill them out and after this you need to adjust your Root.ts2 inside of your site package

page = Page {
    head {
        (...)
        titleTag < DMF.SeoTool:PageTitle

        metadata < DMF.SeoTool:MetaContent

        canonicalReference < DMF.SeoTool:Canonical
        canonicalReference.alwaysInclude = 1
    }

    body {
        (...)
        content {
            (...)
            websiteTitle =  ${q(node).filter('[instanceof TYPO3.Neos.NodeTypes:Page]').property('websiteTitle')}
        }
    }
}

Inside of your page template you can include the websiteTitle like following sample code:

<f:if condition="{content.websiteTitle}">
    <h1 class="page-header">{content.websiteTitle}</h1>
</f:if>

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2014-10-08