From 96d3331ec50b5ffa99f360a7742a876e33a97d0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Wed, 4 Feb 2026 16:57:08 +0100 Subject: [PATCH 1/3] Added doc for additional parameter for ibexa_render --- docs/release_notes/ibexa_dxp_v4.6.md | 31 +++++++++++++++++++ docs/release_notes/ibexa_dxp_v5.0.md | 31 +++++++++++++++++++ .../content_twig_functions.md | 8 +++++ 3 files changed, 70 insertions(+) diff --git a/docs/release_notes/ibexa_dxp_v4.6.md b/docs/release_notes/ibexa_dxp_v4.6.md index 912e4d30ea..17d28578ce 100644 --- a/docs/release_notes/ibexa_dxp_v4.6.md +++ b/docs/release_notes/ibexa_dxp_v4.6.md @@ -10,6 +10,37 @@ month_change: false
+[[% set version = 'v4.6.28' %]] +[[= release_note_entry_begin("Ibexa DXP " + version, '2026-02-04', ['Headless', 'Experience', 'Commerce']) =]] + +### 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())`. + +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). + +### Full changelog + +[[% include 'snippets/release_46.md' %]] +[[= release_note_entry_end() =]] + [[% set version = 'v4.6.27' %]] [[= release_note_entry_begin("Ibexa DXP " + version, '2026-02-03', ['Headless', 'Experience', 'Commerce']) =]] diff --git a/docs/release_notes/ibexa_dxp_v5.0.md b/docs/release_notes/ibexa_dxp_v5.0.md index 626e4bd349..5df8479a47 100644 --- a/docs/release_notes/ibexa_dxp_v5.0.md +++ b/docs/release_notes/ibexa_dxp_v5.0.md @@ -10,6 +10,37 @@ month_change: false
+[[% set version = 'v5.0.6' %]] +[[= release_note_entry_begin("Ibexa DXP " + version, '2026-02-04', ['Headless', 'Experience', 'Commerce']) =]] + +### 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())`. + +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). + +### Full changelog + +[[% include 'snippets/release_50.md' %]] +[[= release_note_entry_end() =]] + [[% set version = 'v5.0.5' %]] [[= release_note_entry_begin("Ibexa DXP " + version, '2026-01-15', ['Headless', 'Experience', 'Commerce']) =]] diff --git a/docs/templating/twig_function_reference/content_twig_functions.md b/docs/templating/twig_function_reference/content_twig_functions.md index 21e8339156..c1e9b125be 100644 --- a/docs/templating/twig_function_reference/content_twig_functions.md +++ b/docs/templating/twig_function_reference/content_twig_functions.md @@ -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 @@ -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 From 8ceb8e41995a01da25132d80d36027f672067b8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Thu, 5 Feb 2026 09:06:11 +0100 Subject: [PATCH 2/3] Added update sections --- docs/update_and_migration/from_4.6/update_from_4.6.md | 4 ++++ docs/update_and_migration/from_5.0/update_from_5.0.md | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/docs/update_and_migration/from_4.6/update_from_4.6.md b/docs/update_and_migration/from_4.6/update_from_4.6.md index 26bd3560c4..406a4e9a2d 100644 --- a/docs/update_and_migration/from_4.6/update_from_4.6.md +++ b/docs/update_and_migration/from_4.6/update_from_4.6.md @@ -566,6 +566,10 @@ If you do, add the required dependencies to your project: composer require guzzlehttp/guzzle:^6.5 php-http/guzzle6-adapter:^2.0 ``` +## v4.6.28 + +No additional steps needed. + [[% include 'snippets/update/notify_support.md' %]] diff --git a/docs/update_and_migration/from_5.0/update_from_5.0.md b/docs/update_and_migration/from_5.0/update_from_5.0.md index 67e704e4fe..8b67722d93 100644 --- a/docs/update_and_migration/from_5.0/update_from_5.0.md +++ b/docs/update_and_migration/from_5.0/update_from_5.0.md @@ -281,6 +281,11 @@ Run the provided SQL upgrade script to ensure the Messenger tables for [backgrou psql < vendor/ibexa/installer/upgrade/db/postgresql/ibexa-5.0.4-to-5.0.5.sql ``` +## v5.0.6 + +No additional steps needed. + + ## LTS Updates and additional packages [LTS Updates](editions.md#lts-updates) are standalone packages with their own update procedures. From 7838c3f606abf90e9c0796bdaa14115d618e5e0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Thu, 5 Feb 2026 09:57:48 +0100 Subject: [PATCH 3/3] Update docs/update_and_migration/from_5.0/update_from_5.0.md Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com> --- docs/update_and_migration/from_5.0/update_from_5.0.md | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/update_and_migration/from_5.0/update_from_5.0.md b/docs/update_and_migration/from_5.0/update_from_5.0.md index 8b67722d93..984761295a 100644 --- a/docs/update_and_migration/from_5.0/update_from_5.0.md +++ b/docs/update_and_migration/from_5.0/update_from_5.0.md @@ -285,7 +285,6 @@ Run the provided SQL upgrade script to ensure the Messenger tables for [backgrou No additional steps needed. - ## LTS Updates and additional packages [LTS Updates](editions.md#lts-updates) are standalone packages with their own update procedures.