Show Menu
Cheatography

eZ 5.0 Cheat Sheet (DRAFT) by

eZ 5.0 Cheat Sheet

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Config­uration

Run legacy directly
legacy­_mode: true
 

Templates

Get viewPa­ram­eters
app.re­que­st.a­tt­rib­utes( 'viewP­ara­meters' )
Get location name
locati­on.c­on­ten­tIn­fo.name
Render a field
{ ez_ren­der­_field( content, "­<my­_fi­eld­>" }
Use custom template to a field
{ ez_ren­der­_field( content, "­<my­_fi­eld­>", { 'templ­ate': 'eZDem­oBu­ndl­e:f­iel­ds:­fie­lds.ht­ml.t­wig' } ) }
 

test

azerty
azetyy