Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pkerspe committed Mar 15, 2015
1 parent 612f663 commit 66144dd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ and [Project wiki](https://github.com/pkerspe/yii2-simple-cms/wiki) for more det

Installation instructions are located in the [installation guide](https://github.com/pkerspe/yii2-simple-cms/wiki)

Prefered way is by using composer:
Prefered way is using composer by adding the reuquirement to your composer.json and running composer update afterwards:

"require": {
"schallschlucker/yii2-simple-cms": ">=0.1",
Expand All @@ -23,8 +23,7 @@ Prefered way is by using composer:

After installation run migration for database table creation:

php yii migrate --migrationPath=@schallschlucker/simplecms/migrations

yii migrate --migrationPath=@schallschlucker/simplecms/migrations

#Usage

Expand All @@ -36,6 +35,8 @@ The backend provides administrative functions for maintaining the page tree stru

Both modules can be deployed in the same application, but it is recommended to follow the frontend/backend approach to clearly separate the frontend (user view) from the administrative backend interface.

Content pages in simple cms can be created in multiple language, since simple cms uses internal language id's which might differ from your applications language codes (i.e. ISO 2 letter code or 5 letter code) you need ti initalize the LanguageManager in the components section with a valid mapping to map you applications language codes to the simple cms language codes. Here is an example (which also uses aliases to e.g. map the application language code "de-DE" to the simple cms language code "1" etc.). You can add support for additional languages in simple cms just by adding new mappings.:

'components' => [
'simplecmsLanguageManager' => [
'class' => 'schallschlucker\simplecms\LanguageManager',
Expand Down Expand Up @@ -98,6 +99,8 @@ Both modules can be deployed in the same application, but it is recommended to f

After the modules registered, you should be able to open the administration backend by calling the "simplecms_backend" route e.g. by calling:
http://<your-server>/index.php?r=simplecms_backend
or if pretty URLs are acitvated:
http://<your-server>/simplecms_backend

Then you should see CMS Administration Backend with a root node in the page-tree.

Expand Down

0 comments on commit 66144dd

Please sign in to comment.