maddoger/yii2-website Website manager extension for Yii2.

Yii2 Website manager by maddoger

Installation

1) clone 2) migrate: ##yii migrate --migrationPath=@maddoger/website/common/migrations## 3) modules:

'modules' => [ ... 'website' => 'maddoger\website\frontend\WebsiteModule', 'website-backend' => 'maddoger\website\backend\WebsiteModule', ... ],

Text formats

Yii->$app->params['textFormats'] => 
  [
      'text' => [
          'label' => 'Text',
          //no widget, simple textarea
          'formatter' => function ($text) {
              return Yii::$app->formatter->asNtext($text);
          }
      ],
      'md' => [
          'label' => 'Markdown',
          //no widget, simple textarea
          'formatter' => function ($text) {
              return yii\helpers\Markdown::process($text, 'gfm');
          }
      ],
      'html' => [
          'label' => Yii::t('maddoger/website', 'HTML'),
          'widgetClass' => '\vova07\imperavi\Widget',
      ],
      'raw' => [
          'label' => Yii::t('maddoger/website', 'Raw'),
      ],
  ],

URL rule

'<languageSlug:[\w-]+>/<slug:.*?>' => 'website/page/index',

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v1.0.4 is the latest of 5 releases



Unknown license
Stats
0 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
38 total downloads