The intention of this plugin is to add all the missing SEO features to your Sylius store.
For now this plugin has:
- Schema.org data generation
- robots.txt file creation and management
composer require setono/sylius-seo-plugin
# config/routes/setono_sylius_seo.yaml
setono_sylius_seo:
resource: "@SetonoSyliusSEOPlugin/Resources/config/routes.yaml"
<?php
declare(strict_types=1);
namespace App\Entity\Channel;
use Doctrine\ORM\Mapping as ORM;
use Setono\SyliusSEOPlugin\Model\ChannelInterface;
use Setono\SyliusSEOPlugin\Model\ChannelTrait;
use Sylius\Component\Core\Model\Channel as BaseChannel;
/**
* @ORM\Entity
* @ORM\Table(name="sylius_channel")
*/
class Channel extends BaseChannel implements ChannelInterface
{
use ChannelTrait;
}
php bin/console doctrine:migrations:diff
php bin/console doctrine:migrations:migrate -n