sulu_content_load
ΒΆ
Returns a Structure for the given UUID
{% set page = sulu_content_load('1234-1234-1234-1234', {
'title': 'title',
'excerptTitle': 'excerpt.title',
}) %}
Arguments:
uuid: string - UUID of structure
properties: array - Array of properties of the structure that should be loaded
Returns:
- array
content: Content of page
view: View of page
extension: Extensions of page
uuid: UUID of page
template: Template name of page
changed: Changed date of page
changer: User ID of changer
created: Date of creation
creator: User ID of creator
path: Path of page
localizations: Localizations including URLs to other languages
urls: Urls of page (Deprecated)
published: Publish date of page
shadowBaseLocale: Shadow locale of page
Note
Calling the sulu_content_load
twig extension without the properties
argument
loads and resolves all properties of the target. This is an expensive operation that has
a negative impact on the performance and therefore is deprecated.