Seo Manager
Seo Manager for every Site, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist spanjeta/yii2-seo "*"
or add, (*4)
"spanjeta/yii2-seo": "*"
to the require section of your composer.json
file., (*5)
Migration
Run the following command in Terminal for database migration:, (*6)
Linux/Unix:, (*7)
yii migrate/up --migrationPath=@vendor/spanjeta/yii2-seo/migrations
Windows:, (*8)
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
, (*9)
No pretty Url's index.php?r=seomanager
, (*10)
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., (*11)
getModule('seomanager');
$conten = $module->getContent();
if ($conten !== null): ?>
<div class="container">
<?= $conten; ?>
</div>