Message-ID: <1263811369.3356.1485852800722.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3355_215022178.1485852800722" ------=_Part_3355_215022178.1485852800722 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html ez_field

ez_field

=20 =20

AVAILABLE A= S OF 2016.02

Description

ez_field() is a Twig helper which returns a field value in = the current language.

Note that other Twig helpers are available to display specific informati= on of the field. See the the Tw= ig functions page; they all start by ez_field_.

 

If the current language cannot be found as a translation for content, the m= ain language will be used. This behavior is identical when=20 forcing a language using  forcedLanguage.

Prototype and Arguments

ez_field( eZ\Publish\Core\Repository\Values\Conte= nt\Content content, string fieldDefIdentifier[, string forcedLanguage)=

Argument name Type Description
content eZ\Publish\Core\Repository\V= alues\Content\Content Content object the field referred to with fieldDefIdentifier belongs to.
fieldDefIdentifier string Identifier of the field we want to= get the value from.
forcedLanguage string Locale we want the content name tr= anslation in (e.g. "fre-FR"). Null by default (takes current locale)

Usage

 

=20
<h2>My title's id: {{ ez_field( content, "title" ).id }}=
</h2>
=20

 

 

 

------=_Part_3355_215022178.1485852800722--