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
Copy file name to clipboardExpand all lines: docs/templating/twig_function_reference/content_twig_functions.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ You can provide `ibexa_render()` with either a content item or a Location object
28
28
29
29
|Argument|Type|Description|
30
30
|------|------|------|
31
-
|`content`</br>or</br>`location`|`Ibexa\Contracts\Core\Repository\Values\Content\Content`</br>or</br>`Ibexa\Contracts\Core\Repository\Values\Content\Location`|Content item or its location.|
31
+
|`content` or `location`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html) or [`Location`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Location.html)|Content item or its location.|
32
32
|`method`|`string`|(optional) [Rendering method](#rendering-methods). One of: `direct`, `inline`, `esi`, `ssi`. (Default method is `direct`)|
33
33
|`viewType`|`string`|(optional) [View type](template_configuration.md#view-types). (Default view type is `embed`)|
34
34
@@ -60,7 +60,7 @@ If the content item doesn't have a translation in the prioritized or passed lang
60
60
61
61
| Argument | Type | Description |
62
62
|---------------|------|-------------|
63
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item, its ContentInfo object, or ContentAwareInterface object.|
63
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html), [`ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html), or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item, its ContentInfo object, or ContentAwareInterface object.|
64
64
|`forcedLanguage`|`string`| (optional) Language to use (for example, `fre-FR`). |
65
65
66
66
```html+twig
@@ -81,7 +81,7 @@ If the content item doesn't have a translation in the prioritized or passed lang
81
81
82
82
| Argument | Type | Description |
83
83
|---------------|------|-------------|
84
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item, its ContentInfo object, or ContentAwareInterface object.|
84
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html), [`ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html), or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item, its ContentInfo object, or ContentAwareInterface object.|
85
85
86
86
```html+twig
87
87
{{ ibexa_seo_is_empty(content) }}
@@ -97,7 +97,7 @@ If the content item doesn't have a translation in the prioritized or passed lang
97
97
98
98
| Argument | Type | Description |
99
99
|---------------|------|-------------|
100
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item, its ContentInfo object, or ContentAwareInterface object.|
100
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html), [`ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html), or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item, its ContentInfo object, or ContentAwareInterface object.|
101
101
102
102
```html+twig
103
103
{{ ibexa_seo(content) }}
@@ -126,7 +126,7 @@ If the content item doesn't have a translation in the prioritized or passed lang
126
126
127
127
| Argument | Type | Description |
128
128
|---------------|------|-------------|
129
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item to display the category name for. |
129
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html) or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item to display the category name for. |
Copy file name to clipboardExpand all lines: docs/templating/twig_function_reference/field_twig_functions.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ The field is rendered with the default template, but you can optionally pass a d
32
32
33
33
| Argument | Type | Description |
34
34
| ------ | ----- | ----- |
35
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to. |
35
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html) or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to. |
36
36
|`fieldDefinitionIdentifier`|`string`| Field identifier. |
37
37
|`params`|`hash`| (optional) Hash of parameters passed to the template block. |
38
38
@@ -92,7 +92,7 @@ If the content item doesn't have a translation in the prioritized or passed lang
92
92
93
93
| Argument | Type | Description |
94
94
|-----|------|-----|
95
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to.|
95
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html) or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to.|
96
96
|`fieldDefIdentifier`|`string`| Identifier of the field. |
97
97
|`forcedLanguage`|`string`| (optional) Language to use (for example, "fre-FR"). |
98
98
@@ -112,7 +112,7 @@ If the content item doesn't have a translation in the prioritized or passed lang
112
112
113
113
| Argument | Type | Description |
114
114
|-------|------|------|
115
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to.|
115
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html) or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to.|
116
116
|`fieldDefIdentifier`|`string`| Identifier of the field. |
117
117
|`forcedLanguage`|`string`| {optional) Language to use (for example, "fre-FR"). |
118
118
@@ -140,7 +140,7 @@ If the content item doesn't have a translation in the prioritized or passed lang
140
140
141
141
| Argument | Type | Description |
142
142
|---------------|------|-------------|
143
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to. |
143
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html), [`ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html), or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to. |
144
144
|`fieldDefIdentifier`|`string`| Identifier of the field. |
145
145
|`forcedLanguage`|`string`| (optional) Language to use (for example, `fre-FR`). |
146
146
@@ -166,7 +166,7 @@ If the content item doesn't have a translation in the prioritized or passed lang
166
166
167
167
| Argument | Type | Description |
168
168
|---------------|------|-------------|
169
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to. |
169
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html), [`ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html), or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to. |
170
170
|`fieldDefIdentifier`|`string`| Identifier of the field. |
171
171
|`forcedLanguage`|`string`| (optional) Language to use (for example, `fre-FR`). |
172
172
@@ -188,7 +188,7 @@ If the content item doesn't have a translation in the prioritized or passed lang
188
188
189
189
| Argument | Type | Description |
190
190
|---------------|------|-------------|
191
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to. |
191
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html), [`ContentInfo`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentInfo.html), or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field belongs to. |
192
192
|`fieldDefIdentifier`|`string`| Identifier of the field. |
193
193
|`forcedLanguage`|`string`| (optional) Language to use (for example, `fre-FR`). |
194
194
@@ -235,7 +235,7 @@ For example, use `ibexa_field_is_empty()` to check whether a field is empty or f
235
235
236
236
| Argument | Type | Description |
237
237
|---------------|------|-------------|
238
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field may belong to. |
238
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html) or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item the field may belong to. |
239
239
|`fieldDefIdentifier`|`string`| Identifier of the field. |
Copy file name to clipboardExpand all lines: docs/templating/twig_function_reference/image_twig_functions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ To render images, use the [`ibexa_render_field()`](field_twig_functions.md#ibexa
48
48
49
49
| Argument | Type | Description |
50
50
| ------ |----- | ----- |
51
-
|`content`|[`Ibexa\Contracts\Core\Repository\Values\Content\Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html)</br>or</br>[`Ibexa\Contracts\Core\Repository\Values\Content\ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item to display the image for. |
51
+
|`content`|[`Content`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html) or [`ContentAwareInterface`](../../api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html)| Content item to display the image for. |
52
52
53
53
```html+twig
54
54
{% set firstImage = ibexa_content_field_identifier_first_filled_image(content) %}
0 commit comments