julian-b90/yii2-seomanager

This package is abandoned and no longer maintained. No replacement package was suggested.

Seo Manager for every Site

Installs: 466

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 6

Forks: 1

Open Issues: 0

Type:yii2-extension

0.0.6.1 2016-05-15 14:41 UTC

This package is not auto-updated.

Last update: 2023-01-15 00:01:36 UTC


README

Seo Manager

Seo Manager for every Site

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist julian-b90/yii2-seomanager "*"

or add

"julian-b90/yii2-seomanager": "*"

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/julian-b90/yii2-seomanager/migrations

Windows:

yii.bat migrate/up --migrationPath=@vendor/julian-b90/yii2-seomanager/migrations

Usage

Overrite Controller

use julianb90\seomanager\component\Controller;

class SiteController extends Controller
{

}

Ad to modules

    'modules' => [
        'seomanager' => [
            'class' => 'julianb90\seomanager\Module',
        ],
    ]

for example http://localhost.local/seomanager/seomanager/index.html

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; ?>