Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.21 KB

CORE_GENERAL.md

File metadata and controls

64 lines (42 loc) · 1.21 KB

Normalized URL ViewHelper

Trigger the Snippet: Type coreNormalizedUrl in your IDE or editor to trigger this snippet.

Description: Normalizes a path that uses EXT: syntax or an absolute URL to an absolute web path.

Snippet Code:

<core:normalizedUrl pathOrUrl="https://foo.bar/img.jpg" />

Icon for Resource ViewHelper

Trigger the Snippet: Type coreIconForResource in your IDE or editor to trigger this snippet.

Description: Displays an icon for a FAL resource (file or folder).

Snippet Code:

<core:iconForResource resource="{file.resource}" />

Icon ViewHelper

Trigger the Snippet: Type coreIcon in your IDE or editor to trigger this snippet.

Description: Displays an icon identified by an icon identifier.

Snippet Code:

<core:icon
    title="Open actions menu"
    identifier="actions-menu"
    alternativeMarkupIdentifier="inline"
/>

Icon for Record ViewHelper

Trigger the Snippet: Type coreIconForRecord in your IDE or editor to trigger this snippet.

Description: Displays an icon for a specific record.

Snippet Code:

<core:iconForRecord
    table="tt_content"
    row="{record}"
/>