joppedc/sylius-better-seo-plugin

Support for SEO metadata on products

Installs: 8 201

Dependents: 0

Suggesters: 0

Security: 0

Stars: 20

Watchers: 2

Forks: 10

Open Issues: 4

Type:sylius-plugin


README

68747470733a2f2f64656d6f2e73796c6975732e636f6d2f6173736574732f73686f702f696d672f6c6f676f2e706e67

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