sulu_snippet_load_by_areaΒΆ

Returns the selected snippet from the webspace settings for the given snippet area.

{% set snippets = sulu_snippet_load_by_area('sidebar_overview') %}
{{ snippets.content.title }}

Arguments:

  • area: string - The area to search for snippet.
  • webspaceKey: string - optional: The webspace to get area snippet settings.
  • locale: string - optional: The locale to load snippet.

Returns:

  • array
    • uuid: UUID of page
    • changed: Changed date of page
    • changer: User ID of changer
    • created: Date of creation
    • creator: User ID of creator
    • content: Snippet content data
    • view: Snippet view data