Package

ViewHelpers

ViewHelper Documentation

uri.resource

A view helper for creating URIs to resources.

= Examples =

(depending on current package)

{f:uri.resource(path: 'gfx/SomeImage.png', package: 'DifferentPackage')} http://yourdomain.tld/_Resources/Static/DifferentPackage/gfx/SomeImage.png (depending on domain)

{f:uri.resource(path: 'resource://DifferentPackage/Public/gfx/SomeImage.png')} http://yourdomain.tld/_Resources/Static/DifferentPackage/gfx/SomeImage.png (depending on domain)

(depending on your resource object)

Arguments

path string

Location of the resource, can be either a path relative to the Public resource directory of the package or a resource://... URI

package string

Target package key. If not set, the current package key will be used

resource anySimpleType

If specified, this resource object is used instead of the path and package information

localize anySimpleType

Whether resource localization should be attempted or not.

ViewHelper Resources

Schema Resources