Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docs/release_notes/ibexa_dxp_v4.6.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,31 @@

<div class="release-notes" markdown="1">

<draft release notes>
### Developer experience

#### Pass custom parameters to `ibexa_render()` Twig function

You can now pass custom parameters to templates when using the `ibexa_render()` Twig function with the new `params` option, similar to how you can with `render(controller())`.

Check notice on line 18 in docs/release_notes/ibexa_dxp_v4.6.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/release_notes/ibexa_dxp_v4.6.md#L18

[Ibexa.ByUsing] Prefer 'by using' or 'with' to plain 'using'.
Raw output
{"message": "[Ibexa.ByUsing] Prefer 'by using' or 'with' to plain 'using'.", "location": {"path": "docs/release_notes/ibexa_dxp_v4.6.md", "range": {"start": {"line": 18, "column": 49}}}, "severity": "INFO"}

This allows you to provide additional context or data to your view templates:

``` html+twig
{{ ibexa_render(content, {
'viewType': 'line',
'method': 'inline',
'params': {
'custom_param': 'custom_value',
'another_param': 'another_value'
}
}) }}
```

The parameters are available in your template as regular variables.

For more information, see [`ibexa_render()` Twig function](content_twig_functions.md#ibexa_render).


[[% set version = 'v4.6.27' %]]
[[= release_note_entry_begin("Ibexa DXP " + version, '2026-02-03', ['Headless', 'Experience', 'Commerce']) =]]

Expand Down
24 changes: 24 additions & 0 deletions docs/release_notes/ibexa_dxp_v5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,30 @@

<div class="release-notes" markdown="1">

<draft release notes>
### Developer experience

#### Pass custom parameters to `ibexa_render()` Twig function

You can now pass custom parameters to templates when using the `ibexa_render()` Twig function with the new `params` option, similar to how you can with `render(controller())`.

Check notice on line 18 in docs/release_notes/ibexa_dxp_v5.0.md

View workflow job for this annotation

GitHub Actions / vale

[vale] docs/release_notes/ibexa_dxp_v5.0.md#L18

[Ibexa.ByUsing] Prefer 'by using' or 'with' to plain 'using'.
Raw output
{"message": "[Ibexa.ByUsing] Prefer 'by using' or 'with' to plain 'using'.", "location": {"path": "docs/release_notes/ibexa_dxp_v5.0.md", "range": {"start": {"line": 18, "column": 49}}}, "severity": "INFO"}

This allows you to provide additional context or data to your view templates:

``` html+twig
{{ ibexa_render(content, {
'viewType': 'line',
'method': 'inline',
'params': {
'custom_param': 'custom_value',
'another_param': 'another_value'
}
}) }}
```

The parameters are available in your template as regular variables.

For more information, see [`ibexa_render()` Twig function](content_twig_functions.md#ibexa_render).

[[% set version = 'v5.0.5' %]]

[[= release_note_entry_begin("Ibexa DXP " + version, '2026-01-15', ['Headless', 'Experience', 'Commerce']) =]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ You can provide `ibexa_render()` with either a content item or a Location object
|`content` or `location`|[`Content`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Content.html), [`ContentAwareInterface`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-ContentAwareInterface.html) or [`Location`](/api/php_api/php_api_reference/classes/Ibexa-Contracts-Core-Repository-Values-Content-Location.html)|Content item or its location.|
|`method`|`string`|(optional) [Rendering method](#rendering-methods). One of: `direct`, `inline`, `esi`, `ssi`. (Default method is `direct`)|
|`viewType`|`string`|(optional) [View type](template_configuration.md#view-types). (Default view type is `embed`)|
|`params`|`array`|(optional) Hash of variables to pass to the template.|

#### Rendering methods

Expand All @@ -48,6 +49,13 @@ You can pass one of the following rendering methods to `ibexa_render()`:
{{ ibexa_render(content, {'viewType': 'line'}) }}

{{ ibexa_render(content, {'method': 'inline'}) }}

{{ ibexa_render(content, {
'viewType': 'line',
'params': {
'custom_param': 'custom_value'
}
}) }}
```

## Content information
Expand Down