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 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..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 @@ -281,6 +281,10 @@ 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.