定制 joppedc/sylius-better-seo-plugin 二次开发

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

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

joppedc/sylius-better-seo-plugin

最新稳定版本:v1.0.3

Composer 安装命令:

composer require joppedc/sylius-better-seo-plugin

包简介

Support for SEO metadata on products

README 文档

README

Scrutinizer Code Quality Build Status

Sylius Better SEO Plugin

  • Adds configurable SEO meta tags, image and Google rich snippets to product pages.

  • Adds configurable SEO meta tags and image to taxon pages.

Installation

  1. Require plugin with composer:

    composer require joppedc/sylius-better-seo-plugin:^1.0
  2. Add plugin class to your bundles.php.

    JoppeDc\SyliusBetterSeoPlugin\SyliusBetterSeoPlugin::class => ['all' => true],

    or appkernel.php

    $bundles = [
       new \JoppeDc\SyliusBetterSeoPlugin\SyliusBetterSeoPlugin(),
    ];
  3. Import resources:

    imports:
        - { resource: "@SyliusBetterSeoPlugin/Resources/config/config.yaml" }
  4. Override Product and Taxon resource:

    You need to add HasSeoInterface and add SeoTrait to Product and Taxon entity.

    sylius_product:
        resources:
            product:
                classes:
                    model: App\Entity\Product
    
    sylius_taxonomy:
        resources:
            taxon:
                classes:
                    model: App\Entity\Taxon
  5. Finish the installation by updating the database schema

    $ bin/console doctrine:migrations:diff
    $ bin/console doctrine:migrations:migrate
    

Examples

Kitten

Kitten

Kitten

Documentation

License

The MIT License (MIT)

Copyright © 2019 Joppe De Cuyper

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-10-14