Skip to content
Open
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
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'
}
}) }}
Comment on lines +53 to +58
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens for method: esi? One HTTP cache per custom_value I guess as it probably goes to the _fragment URL GET params. So this custom_value also need to be scalar. The best would be a link in the method raw of the table on esi to some ESI doc but there is no clearly dedicated page about that. Probably something to rework later, taking some ideas from the training.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

method: esi is also supported. And yes, that will end up as a value in the _hash GET parameter to the _fragment controller

```

## Content information
Expand Down