- Initialize new project
composer composer create-project sulu/skeleton my-project -n
- Add translation
bin/console sulu:admin:download-language
- Create database and initialize
bin/adminconsole sulu:build dev
- Download the elasticsearch version that matches your installation's (7.17 in my case)
composer require "elasticsearch/elasticsearch:7.17.*"
- Download the article bundle (latest)
composer require sulu/article-bundle
- Download elasticsearch bundle
composer require "handcraftedinthealps/elasticsearch-bundle:^5.2"
- (optionnal) Modify
ELASTICSEARCH_INDEX
value in your.env
file - Create elasticsearch indexes
php bin/console ongr:es:index:create
php bin/console ongr:es:index:create --manager=live
- Activate all your articles rights in your User settings
Settings > User roles > your role
- Create a smart content in your
homepage.xml
- Render your smart content in your
homepage.html.twig
- Create a user role
php bin/console sulu:security:role:create
and assign it thewebsite
system - Create a new user either in your admin or
php bin/console sulu:security:role:create
- Uncomment the routes
login
andlogout
in yourconfig/routes_website.yaml
- Uncomment your
website
firewall in yoursecurity.yaml
- Create your own login page
https://github.com/sulu/sulu/blob/2.x/templates/static/login.html.twig
- Go to your /login page and connect as a user (that you created on point 13)
You should be redirected to the frontpage where the smart content is, and have the following error:
The error appears if:
- You try to use smart content with a user connected via Sulu Community Bundle
- If you connect as a sulu User where a smart content is active
The bug has been fixed as of suluArticleBundle:2.4.1 sulu/SuluArticleBundle#626