Skip to content

Yii2 Articles to create, manage and delete items in a Yii2 site

License

Notifications You must be signed in to change notification settings

coxa/yii2-articles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Articles

Yii2 Articles to create, manage, and delete articles in a Yii2 site.

FEATURES

  • Create, edit and delete articles
  • Article with attachments, image, gallery, hits
  • Manage categories and subcategories
  • Advanced Access Permission
  • Approval
  • Multi-Language with I18N
  • Extra Field Management
  • SEO Optimization

CHANGELOG

  • 0.0.7 - Added Image Upload for Categories
  • 0.0.6 - Added Composer
  • 0.0.5 - Fixed problem with Upload Image
  • 0.0.4 - Added editors ckeditor, tinymce, markdown from other Packages
  • 0.0.3 - Various Fix and Update for Categories Views
  • 0.0.2 - Added multi-language with I18N
  • 0.0.1 - Initial Releases

INSTALLATION USING COMPOSER

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require cinghie/yii2-articles "dev-master"

or add

"cinghie/yii2-articles": "dev-master"

CONFIGURATION

  • Copy images folder from docs to yor webroot
  • Add in your configuration file, in modules section:
    'modules' => [ 
    ...
    	// Module Articles
    	'articles' => [
    		'class' => 'cinghie\articles\Articles',
    
    	// Select Languages allowed
    	'languages' => array_merge([ "en-GB" => "en-GB" ],[ "it-IT" => "it-IT" ]),			
    	// Select Editor: no-editor, ckeditor, tinymce, markdown
    	'editor' => 'ckeditor',
    	// Select Image Types allowed
    	'categoryimagetype' => 'jpg,jpeg,gif,png',
    	// Select Image Name: original, categoryname, casual
    	'categoryimgname' => 'categoryname',
    	// Select Path To Upload Category Image
    	'categoryimagepath' => 'images/articles/categories/',
    	// Select Path To Upload Category Thumb
    	'categorythumbpath' => 'images/articles/categories/thumb/',
    ],
    
    // Module Kartik-v Grid
    'gridview' =>  [
    	'class' => '\kartik\grid\Module',
    	
    	// array the the internalization configuration for this module
    	'i18n' => [
    		'class' => 'yii\i18n\PhpMessageSource',
    		'basePath' => '@kvgrid/messages',
    		'forceTranslation' => true
    	], 
    ],
    	
    // Module Kartik-v Markdown Editor
    'markdown' => [
    	'class' => 'kartik\markdown\Module',
    		
    	// array the the internalization configuration for this module
    	'i18n' => [
    		'class' => 'yii\i18n\PhpMessageSource',
    		'basePath' => '@markdown/messages',
    		'forceTranslation' => true
    	], 
    ],
    

    ... ]

  • Create Database Tables running the file articles\docs\database_tables.sql. If you want use database prefix, edit the file sql adding the prefix and remember to set it in your config:
    'components' => [
    ...
    	'db' => [
                'class' => 'yii\db\Connection',
                'dsn' => 'mysql:host=localhost;dbname=YOURDBNAME',
                'username' => 'YOURDBUSER',
                'password' => 'YOURDBPSW',
                'charset' => 'utf8',
                'tablePrefix' => 'YOURPREFIX_',
            ],
    ...
    ]
    

LINKS

  • Admin Panel: PathToApp/index.php?r=articles
  • Admin Panel with Pretty Urls: PathToApp/articles
  • Categories: PathToApp/index.php?r=articles/categories
  • Categories with Pretty Urls: PathToApp/articles/categories
  • Items: PathToApp/index.php?r=articles/items
  • Items with Pretty Urls: PathToApp/articles/items

LIBRARIES NEEDED

About

Yii2 Articles to create, manage and delete items in a Yii2 site

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 98.5%
  • CSS 1.5%