spanjeta / yii2-seo
Seo Manager for every Site
Installs: 43
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 3
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-11-04 13:35:00 UTC
README
Seo Manager for every Site
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist spanjeta/yii2-seo "*"
or add
"spanjeta/yii2-seo": "*"
to the require section of your composer.json
file.
###Migration
Run the following command in Terminal for database migration:
Linux/Unix:
yii migrate/up --migrationPath=@vendor/spanjeta/yii2-seo/migrations
Windows:
yii.bat migrate/up --migrationPath=@vendor/spanjeta/yii2-seo/migrations
Usage
Add to modules
```php
'modules' => [
'seomanager' => [
'class' => 'spanjeta\modules\seomanager\Module',
],
]
Pretty Url's /seomanager
No pretty Url's index.php?r=seomanager
content
To get content to every page you can use in the seomanger the content field. To print out the content you must you this in your view.
<?php /** @var Module $module */ $module = Yii::$app->getModule('seomanager'); $conten = $module->getContent(); if ($conten !== null): ?> <div class="container"> <?= $conten; ?> </div> <?php endif; ?>