2017 © Pedro Peláez
 

yii2-extension blcms-staticpage

Module for static pages

image

black-lamp/blcms-staticpage

Module for static pages

  • Thursday, January 19, 2017
  • by GutsVadim
  • Repository
  • 6 Watchers
  • 0 Stars
  • 271 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 1 Forks
  • 3 Open issues
  • 13 Versions
  • 2 % Grown

The README.md

blcms-staticpage

Static pages seo-data extention for BlackLamp CMS, (*1)

php yii migrate --migrationPath=@yii/rbac/migrations php yii migrate --migrationPath=@vendor/black-lamp/blcms-staticpage/migrations, (*2)

Roles and its permissions:, (*3)

staticPageManager - viewStaticPages - editStaticPage - deleteStaticPage, (*4)

Usage, (*5)

Add behavior to controller with unique key. This key you will use in admin panel of module for setting this page:, (*6)

public function behaviors()
    {
        return [
            'staticPage' => [
                'class' => StaticPageBehavior::className(),
                'key' => 'shop'
            ]
        ];
    }

Then add in action next record. It adds to your page title, meta-description and meta-keywords:, (*7)

$this->registerStaticSeoData();

The Versions

19/01 2017
19/01 2017
25/10 2016
29/09 2016
04/07 2016
28/06 2016