SyliusBetterSeoPlugin
SyliusBetterSeoPlugin copied to clipboard
SEO Plugin for Sylius products and taxons
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
-
Require plugin with composer:
composer require joppedc/sylius-better-seo-plugin:^1.0
-
Add plugin class to your
bundles.php
.JoppeDc\SyliusBetterSeoPlugin\SyliusBetterSeoPlugin::class => ['all' => true],
or
appkernel.php
$bundles = [ new \JoppeDc\SyliusBetterSeoPlugin\SyliusBetterSeoPlugin(), ];
-
Import resources:
imports: - { resource: "@SyliusBetterSeoPlugin/Resources/config/config.yaml" }
-
Override Product and Taxon resource:
You need to add
HasSeoInterface
and addSeoTrait
to Product and Taxon entity.sylius_product: resources: product: classes: model: App\Entity\Product sylius_taxonomy: resources: taxon: classes: model: App\Entity\Taxon
-
Finish the installation by updating the database schema
$ bin/console doctrine:migrations:diff $ bin/console doctrine:migrations:migrate
Examples



Documentation
- Local development
License
The MIT License (MIT)
Copyright © 2019 Joppe De Cuyper