Today I would like to talk about SULU CMF, which is at the version 2.o.

Sulu is  a  is a fantastic project based on Symfony 2 full stack and other open source application like PHPCR, Doctrine, Backbone.js and Require.js.

It is meant to help developers create multi-platform, multi-language and multi-channel sites giving some boilerplate functionalities.

Ah did I mention that it works great and it looks sleek ?! Check the gallery below and don’t forget to download the project to give it a try.

Installation

To begin with you will need the code, which can be cloned from the sulu-standard repository on GitHub .

$ git clone https://github.com/sulu-io/sulu-standard.git

After the clone has finished, you can change to the cloned directory, and checkout the latest version of Sulu:

$ cd sulu-standard
$ git checkout master

 

Use Composer to install Sulu’s dependencies:

composer install

At the end of the installation, Composer asks you to submit values of different parameters. For now, just press “Enter” to keep their default values or change them to whatever you prefer.

 

Next step would be the setup.

Sulu run around the concept of webspaces.  Each of these webspaces cofigure a content tree. We can start with copying the default file and modify it accordingly:

cp app/Resources/webspaces/sulu.io.xml.dist app/Resources/webspaces/sulu.io.xml

 

Once done, is time to pass to the templates, each content is based on a template which needs to be defined. To start also in this case,  we can use the  default files:

cp app/Resources/pages/default.xml.dist app/Resources/pages/default.xml
cp app/Resources/pages/overview.xml.dist app/Resources/pages/overview.xml
cp app/Resources/snippets/default.xml.dist app/Resources/snippets/default.xml


No we need to complete the installation (these are OSX commands, go on sulu's website for more):

rm -rf app/cache/*
rm -rf app/logs/*
HTTPDUSER=`ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\  -f1`
sudo chmod +a "$HTTPDUSER allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs uploads uploads/* web/uploads web/uploads/* app/data
sudo chmod +a "`whoami` allow delete,write,append,file_inherit,directory_inherit" app/cache app/logs uploads uploads/* web/uploads web/uploads/* app/data


Run the following commands to complete the installation:

app/console sulu:build prod (load fixtures, and does some more setup)
app/console sulu:build dev (same as above)

If you need more users or roles:
app/console sulu:security:role:create (create a security role)
app/console sulu:security:user:create (create an user)

Done! Now you can go to the /admin path and start playing with Sulu. 
Have fun, and let me know how you liked it.
Sulu CMF 2016-04-22T07:15:48+00:00 Soipo

Comments are closed.

Privacy Preference Center

gdpr

We track users consent by creating a cookie and storing their preferences there.

soiposervices.com

_ga

Used to distinguish users.

soiposervices.com

_gat

Used to throttle request rate. If Google Analytics is deployed via Google Tag Manager, this cookie will be named _dc_gtm_.

soiposervices.com

_gid

Used to distinguish users.

soiposervices.com

lang

Used to understand the locale used by the user and present the right content.

cdn.syndication.twimg.com
Used to understand the locale used by the user and present the right content.

tk_lr

Collection of internal metrics for user activity, used to improve user experience.

soiposervices.com

tk_or

Collection of internal metrics for user activity, used to improve user experience.

soiposervices.com

tk_r3d

Collection of internal metrics for user activity, used to improve user experience.

soiposervices.com

NID

Used to distinguish users.

google.com
Used to distinguish users.

Close your account?

Your account will be closed and all data will be permanently deleted and cannot be recovered. Are you sure?

%d bloggers like this: