You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To try it out, add the following to your layout template:
{! blocks/group?wildcard=[id]-*&rows=on !}
This tag turns a page into an expandable set of rows of content blocks, which can now also contain up to 5 columns of content.
You'll see a new Content Layout button next to the up/down arrows in the block edit buttons. The buttons in the first column now control the properties for the entire row, and each column now has its own edit button too.
When you click this new button, or when you click the Add Block button to add another row of content, you'll be shown the following options for content layouts:
The layout can also be modified through the block add/edit forms sidebar:
And finally, you can tab between the rows just above the wysiwyg editor, so you can edit an entire row from the same form:
Docker support
Elefant now includes Docker configurations for building production and development containers, as well as a docker-compose file for spinning up a complete development environment in a single command which includes a MySQL database and Redis-backed caching.
To build a production container from a fresh clone of the Elefant repository, run:
$ make build
This will build a container named elefant. Similarly, you can build a development container via:
$ make dev
This will build a container named elefant-dev.
To spin up a development environment (after running make dev), run:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Column layouts
This feature builds on the recent improvements to the
blocks/group
handler and adds the ability to define column layouts for each content row whenrow=on
is set.To try it out, add the following to your layout template:
This tag turns a page into an expandable set of rows of content blocks, which can now also contain up to 5 columns of content.
You'll see a new Content Layout button next to the up/down arrows in the block edit buttons. The buttons in the first column now control the properties for the entire row, and each column now has its own edit button too.
When you click this new button, or when you click the Add Block button to add another row of content, you'll be shown the following options for content layouts:
The layout can also be modified through the block add/edit forms sidebar:
And finally, you can tab between the rows just above the wysiwyg editor, so you can edit an entire row from the same form:
Docker support
Elefant now includes Docker configurations for building production and development containers, as well as a docker-compose file for spinning up a complete development environment in a single command which includes a MySQL database and Redis-backed caching.
To build a production container from a fresh clone of the Elefant repository, run:
This will build a container named
elefant
. Similarly, you can build a development container via:This will build a container named
elefant-dev
.To spin up a development environment (after running
make dev
), run:And to shut it down, run:
Take a look at the included docker-compose.yml and .docker/* files for more info.
Other improvements
ELEFANT_DEFAULT_PASS
environment variable for./elefant install
command line installerblocks/group
as shown above, Elefant will update the block IDs so they don't become unlinked from the page$page->add_script ('/apps/myapp/js/script.js', 'async')
User::error()
to get the underlying reason for an authentication failure (e.g.,incorrect credentials, too many tries, database error)./elefant api/get
and./elefant api/post
command output|comma
filter to template variables, which outputs the value followed by a comma only if the value isn't emptyBug fixes
./elefant permissions
command due to missing folder{{base64_decode('cGhwaW5mbw==')()}}
)This discussion was created from the release 2.2.6.
Beta Was this translation helpful? Give feedback.
All reactions