layout | title | body_class |
---|---|---|
doc |
Quick Setup |
body-green |
The easyiest way to try playing is clone the sample project here https://github.com/opera-project/opera-cms
$ git clone [email protected]:opera-project/skeleton.git
$ cd opera-cms
Comment the file /config/routes/opera_core.yaml
Run make init
Edit the DATABASE_URL
in your .env
file
Run make db
Uncomment the file /config/routes/opera_core.yaml
add the opera pages to your routing file config/routes.yaml
_opera_page:
path: /{_opera_page_path}/
defaults:
_opera_page_path: /
requirements:
_opera_page_path: .+
Waiting PR in merge
In your command console execute the following command:
composer create-project -s dev opera-project/skeleton:1.0.x-dev example
This command creates a new directory called example
that contains a new symfony project using opera.
Presently, your database is not configured, you will not have permission.
You must edit the DATABASE_URL
in your .env
file
You can now use make init
and make db
command in your project folder. It will create the database according to your DATABASE_URL
and load the schema and fixtures.
You can now start the web server:
./bin/console server:run
The admin will be available on http://localhost:8000/admin{:target="_blank"} using cedric
as username and demo
as password.
- Step-by-step Guide: Setup Your website layout
- Doc: implement a layout
- Doc: create your own entities
- Doc: create your own block
This skeleton contains these bundles:
- OperaTextBlockBundle (Manage block of text, script, static contents)
- OperaListBlockBundle (Manage block of list of content)
- OperaMediaBundle (Manage media, upload files)
- OperaTaxonomyBundle (Manage tags)
- OperaTwigBlockBundle (Manage twig block: a text block that can use twig variables)
Opera Project use EasyAdmin admin generator. You might want to take a look at their documentation{:target="_blank"} in the near futur.