Skip to content

N445/SyliusBetterSeoPlugin

 
 

Repository files navigation

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 n445/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

About

SEO Plugin for Sylius products and taxons

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 69.6%
  • Twig 22.6%
  • JavaScript 5.3%
  • Shell 2.5%