sulu_snippet_load_defaultΒΆ

Note

This method is deprecated, use sulu_snippet_load_by_area instead.

Returns content array of selected default snippet for given snippet type.

{% set snippets = sulu_snippet_load_default('default') %}
{{ snippets[0].content.title }}

Note

The system currently only support one default per type.

Arguments:

  • snippetType: string - The type to search for default snippets.
  • webspaceKey: string - optional: The webspace to get default snippet
    settings.
  • locale: string - optional: The locale to load snippet.

Returns:

An array of:

  • 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