Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (121) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-07-24 (Yesterday) | Not yet rated by the users | Total: 6 This week: 6 | All time: 11,388 This week: 10 |
Version | License | PHP version | Categories | |||
yii2-website-module 1.0 | BSD License | 5 | PHP 5, Libraries, Content management |
Description | Author | |
This package can add a content page management system to a site. |
Yii2 module to implement a website.
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist daxslab/yii2-website-module "*"
or add
"daxslab/yii2-website-module": "*"
to the require section of your composer.json
file.
Website tries to be an unobstrusive CMS without limiting the capabilities of Yii2 framework as development platform. The idea is that you can add website features to an existing application, or just create a website based on Yii2 framework.
The idea behind Website module is a bit different compared with other CMS. While generally pages, posts and categories are managed, in Website everything is a page and every page can have children pages so,
The resulting tree can then have wathever depth is required.
Besides pages, Website also manages Media: any attached file that can be referenced in the resulting website. The module handles the uploading process.
Also you can manage Menus with Website module. For every menu you can create menu items and this than be pointed to any URL. When creating a menu item you either type the label and URL, or select from existing pages.
Website is meant to be used with the Yii2 Advanced Application template. Some modification could be done to make it usable with basic template.
First configure the module for all the apps in common/config/main.php
//...
'modules' => [
'website' => [
'class' => daxslab\website\Module::class,
'languages' => ['en', 'es', 'it'],
'token' => 'some-string-here'
]
]
//...
Here notice the specified attributes: - languages: array with the languages that will be active for creating content - token: string identifying every website in case that several are used.
It is assumed that you are using some database and that the connection to it it's already set. Configure migrations in console/config/main.php
//...
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'daxslab\website\migrations',
]
],
],
//...
Configure controllers namespaces for the module in each app. Let's start with frontend/config/main.php
//...
'modules' => [
'website' => [
'controllerNamespace' => 'daxslab\website\controllers\frontend'
]
]
//...
And similar for backend/config/main.php
//...
'modules' => [
'website' => [
'controllerNamespace' => 'daxslab\website\controllers\backend'
]
]
//...
The module provides two sets of controllers: frontend and backend.
Files |
File | Role | Description | ||
---|---|---|---|---|
assets (2 directories) | ||||
behaviors (1 file) | ||||
commands (1 file) | ||||
components (1 file) | ||||
controllers (2 directories) | ||||
messages (1 file, 1 directory) | ||||
migrations (12 files) | ||||
models (25 files) | ||||
views (2 directories) | ||||
widgets (1 file) | ||||
Bootstrap.php | Class | Class source | ||
composer.json | Data | Auxiliary data | ||
Module.php | Class | Class source | ||
README.md | Doc. | Documentation | ||
WebsiteAsset.php | Class | Class source |
Files | / | assets | / | js |
File | Role | Description | ||
---|---|---|---|---|
ckeditor (2 directories) | ||||
backend.js | Data | Auxiliary data | ||
jquery.fn.sortable.js | Data | Auxiliary data |
Files | / | assets | / | js | / | ckeditor |
File | Role | Description | ||
---|---|---|---|---|
imagebrowser (3 files, 1 directory) | ||||
showprotected (1 file, 2 directories) |
Files | / | assets | / | js | / | ckeditor | / | imagebrowser |
File | Role | Description | ||
---|---|---|---|---|
browser (4 files) | ||||
LICENSE.txt | Doc. | Documentation | ||
plugin.js | Data | Auxiliary data | ||
README.rst | Doc. | Documentation |
Files | / | assets | / | js | / | ckeditor | / | imagebrowser | / | browser |
File | Role | Description |
---|---|---|
browser.css | Data | Auxiliary data |
browser.html | Doc. | Documentation |
browser.js | Data | Auxiliary data |
jquery-1.9.1.min.js | Data | Auxiliary data |
Files | / | assets | / | js | / | ckeditor | / | showprotected | / | dialogs |
File | Role | Description |
---|---|---|
protected.js | Data | Auxiliary data |
Files | / | assets | / | js | / | ckeditor | / | showprotected | / | images |
File | Role | Description |
---|---|---|
code.gif | Icon | Icon image |
Files | / | controllers | / | backend |
File | Role | Description |
---|---|---|
MediaController.php | Class | Class source |
MenuController.php | Class | Class source |
MenuItemController.php | Class | Class source |
MetadataDefinitionController.php | Class | Class source |
PageController.php | Class | Class source |
PageTypeController.php | Class | Class source |
WebsiteController.php | Class | Class source |
Files | / | controllers | / | frontend |
File | Role | Description |
---|---|---|
BaseController.php | Class | Class source |
BlockController.php | Class | Class source |
PageController.php | Class | Class source |
Files | / | migrations |
File | Role | Description |
---|---|---|
m190103_202248_create_website_table.php | Class | Class source |
m190104_004059_cre...page_type_table.php | Class | Class source |
m190104_004730_create_page_table.php | Class | Class source |
m190105_014225_create_menu_table.php | Class | Class source |
m190105_014226_cre...menu_item_table.php | Class | Class source |
m190105_054132_create_media_table.php | Class | Class source |
m190122_230350_cre...efinition_table.php | Class | Class source |
m190123_131635_create_metadata_table.php | Class | Class source |
m200815_005933_add...efinition_table.php | Class | Class source |
m200815_224355_add...page_type_table.php | Class | Class source |
m200818_121205_add...page_type_table.php | Class | Class source |
Migration.php | Class | Class source |
Files | / | models |
File | Role | Description |
---|---|---|
ActiveRecord.php | Class | Class source |
Media.php | Class | Class source |
MediaQuery.php | Class | Class source |
MediaSearch.php | Class | Class source |
Menu.php | Class | Class source |
MenuItem.php | Class | Class source |
MenuItemQuery.php | Class | Class source |
MenuItemSearch.php | Class | Class source |
MenuQuery.php | Class | Class source |
MenuSearch.php | Class | Class source |
Metadata.php | Class | Class source |
MetadataDefinition.php | Class | Class source |
MetadataDefinitionQuery.php | Class | Class source |
MetadataDefinitionSearch.php | Class | Class source |
MetadataQuery.php | Class | Class source |
Page.php | Class | Class source |
PageQuery.php | Class | Class source |
PageSearch.php | Class | Class source |
PageType.php | Class | Class source |
PageTypeQuery.php | Class | Class source |
PageTypeSearch.php | Class | Class source |
PageTypeSsearch.php | Class | Class source |
Website.php | Class | Class source |
WebsiteQuery.php | Class | Class source |
WebsiteSearch.php | Class | Class source |
Files | / | views | / | backend | / | media |
File | Role | Description |
---|---|---|
create.php | Example | Example script |
images-gallery.php | Aux. | Configuration script |
index.php | Example | Example script |
update.php | Example | Example script |
view.php | Example | Example script |
_form.php | Example | Example script |
_image.php | Example | Example script |
_search.php | Example | Example script |
_view.php | Example | Example script |
Files | / | views | / | backend | / | metadata-definition |
File | Role | Description |
---|---|---|
create.php | Example | Example script |
index.php | Example | Example script |
update.php | Example | Example script |
_form.php | Class | Class source |
_view.php | Example | Example script |
Files | / | views | / | backend | / | page-type |
File | Role | Description |
---|---|---|
create.php | Example | Example script |
index.php | Example | Example script |
update.php | Example | Example script |
_form.php | Class | Class source |
Files | / | views | / | backend | / | page |
File | Role | Description |
---|---|---|
create.php | Example | Example script |
index.php | Example | Example script |
update.php | Example | Example script |
_form.php | Class | Class source |
_list-gallery.php | Example | Example script |
_list.php | Example | Example script |
_view-gallery.php | Example | Example script |
_view.php | Example | Example script |
Files | / | views | / | backend | / | website |
File | Role | Description |
---|---|---|
update.php | Example | Example script |
view.php | Example | Example script |
_form.php | Example | Example script |
Files | / | views | / | frontend | / | block |
File | Role | Description |
---|---|---|
carousel.php | Example | Example script |
category-item.php | Example | Example script |
category.php | Example | Example script |
gallery.php | Example | Example script |
Files | / | views | / | frontend | / | page |
File | Role | Description |
---|---|---|
gallery.php | Example | Example script |
landing.php | Example | Example script |
list.php | Example | Example script |
page.php | Example | Example script |
_header.php | Example | Example script |
_list-view.php | Example | Example script |
_page-view.php | Example | Example script |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.