tulik/sylius-better-seo-plugin

Support for SEO metadata on products

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 22

Type:sylius-plugin


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