-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99a35db
commit 932597e
Showing
2 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
* :doc:`/reference/installation_instructions` | ||
* :doc:`/reference/configuration` | ||
* :doc:`/reference/templating` | ||
* :doc:`/reference/query_types` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
Templating | ||
========== | ||
|
||
eZ Platform Twig functions and filters comparison | ||
------------------------------------------------- | ||
|
||
List of eZ Platform `Twig functions`_. | ||
|
||
.. _Twig functions: https://doc.ezplatform.com/en/2.2/guide/twig_functions_reference/ | ||
|
||
|
||
+----------------------+-----------------------------+-----------------+ | ||
| eZ Platform | Netgen Site API | Description | | ||
+======================+=============================+=================+ | ||
| ez_content_name | content.name | displays a | | ||
| | | Content item’s | | ||
| | | name in the | | ||
| | | current | | ||
| | | language | | ||
+----------------------+-----------------------------+-----------------+ | ||
| ez_field_desciption | content.fields.field_identi | returns the | | ||
| | fier.description | description | | ||
| | | from the | | ||
| | | FieldDefinition | | ||
| | | of a Content | | ||
| | | item’s Field in | | ||
| | | the current | | ||
| | | language | | ||
+----------------------+-----------------------------+-----------------+ | ||
| ez_field_name | content.fields.field_identi | returns the | | ||
| | fier.name | name from the | | ||
| | | FieldDefinition | | ||
| | | of a Content | | ||
| | | item’s Field in | | ||
| | | the current | | ||
| | | language | | ||
+----------------------+-----------------------------+-----------------+ | ||
| ez_field_value | content.fields.field_identi | returns a | | ||
| | fier.value | Content item’s | | ||
| | | Field value in | | ||
| | | the current | | ||
| | | language | | ||
+----------------------+-----------------------------+-----------------+ | ||
| ez_field | content.fields.field_identi | returns a Field | | ||
| | fier | from a Content | | ||
| | | item in the | | ||
| | | current | | ||
| | | language | | ||
+----------------------+-----------------------------+-----------------+ | ||
| ez_file_size | - | returns the | | ||
| | | size of a file | | ||
| | | as string | | ||
+----------------------+-----------------------------+-----------------+ | ||
| ez_first_filled_imag | - | returns the | | ||
| e_field_identifier | | identifier of | | ||
| | | the first image | | ||
| | | field that is | | ||
| | | not empty | | ||
+----------------------+-----------------------------+-----------------+ | ||
| ez_image_alias | ng_image_alias | displays a | | ||
| | | selected | | ||
| | | variation of an | | ||
| | | image | | ||
+----------------------+-----------------------------+-----------------+ | ||
| ez_is_field_empty | content.fields.field_identi | checks if a | | ||
| | fier.empty | Content item’s | | ||
| | | Field value is | | ||
| | | considered | | ||
| | | empty in the | | ||
| | | current | | ||
| | | language | | ||
+----------------------+-----------------------------+-----------------+ | ||
| ez_render_field | ng_render_field | displays a | | ||
| | | Content item’s | | ||
| | | Field value, | | ||
| | | taking | | ||
| | | advantage of | | ||
| | | the template | | ||
| | | block exposed | | ||
| | | by the Field | | ||
| | | Type used | | ||
+----------------------+-----------------------------+-----------------+ | ||
| ez_trans_prop | - | gets the | | ||
| | | translated | | ||
| | | value of a | | ||
| | | multi | | ||
| | | valued(translat | | ||
| | | ions) | | ||
| | | property | | ||
+----------------------+-----------------------------+-----------------+ | ||
| ez_urlalias | - | is a special | | ||
| | | route name for | | ||
| | | generating URLs | | ||
| | | for a Location | | ||
| | | from the given | | ||
| | | parameters | | ||
+----------------------+-----------------------------+-----------------+ | ||
| - | ng_query | returns | | ||
| | | Pagefanta | | ||
| | | instance for | | ||
| | | configured | | ||
| | | QueryType | | ||
+----------------------+-----------------------------+-----------------+ |