=======
- PHP >= 7.1
- Composer Install
- Ruby >= 1.9 Install
- Bundler
gem install bundler
- node & yarn Install
- Gulp global
npm install gulp -g
- Clone the git repo -
git clone https://github.com/undefinedio/stash.git
- Remove git repo -
rm -rf .git
- Run
composer install
- Copy
.env.example
to.env
and update environment variables - Set your site vhost document root to
/path/to/site/web/
(/path/to/site/current/web/
if using deploys) - run
yarn install
- run
gulp
Automatic linking of pages with controller. It is aware of multi language page ids, so just use the default language id. It also adds an new class to the body: 'page-' + controller name
Controllers work as the following:
- create a page in the backend
- note the page id (main language page id)
- add the page id and a name for the controller in
web/app/themes/stash/lib/setup.php
- create a file inside the controller map with controller name + '.php'
- Relax, take a break. Enjoy life
It is also possible to use one single controller for all children of the same parent. Set the parent Id and the name of controller in the function setParentPages
Custom twig filters that you can use in the twig templates
Automatically add p tags around wordpress content. (wpautop function)
Usage: {{ post.content | p }}