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

ez_field_description

=20 =20

Description

ez_field_description() is a Twig helper which returns a Con= tent item's field FieldDefinition description in the current language.=

This can be useful when you don't want to use a sub-request and custom c= ontroller to be able to display this information.

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

Prototype and Argumen= ts

ez_field_description(&n= bsp;Content|ContentInfo content, string<= strong> fieldDefIdentifier[, string forcedLanguage] )

Argument name Type Description
content eZ\Publish\Core\Repository\V= alues\Content\Content or
eZ\Publish\Core\Repository\V= alues\Content\ContentInfo 
Content / ContentInfo object the fieldDe= fIdentifier belongs to.
fieldDefIdentifier string Identifier of the field we want to= get the FieldDefinition description from.
forcedLanguage string Language we want to force (e.g. "e= ng-US"), otherwise takes prioritized languages from SiteAccess settings.

Usage

=20
<p id=3D"ez-content-article-title-description">{{ ez_field_de=
scription( content, "title" ) }}</p>
=20

 

 

 

------=_Part_3339_113895078.1485852766165--