Documentation · ViewHelper reference

XSD schema file | vhs master

Media / SourceViewHelper

Used in conjuntion with the v:media.PictureViewHelper. Please take a look at the v:media.PictureViewHelper documentation for more information. /

  • Tag usage example

    <v:media.source additionalAttributes="{foo: 'bar'}" data="{foo: 'bar'}" media="NULL" width="NULL" height="NULL" maxW="123" maxH="123" minW="123" minH="123" format="NULL" quality="123" relative="1">
    	<!-- tag content - may be ignored! -->
    </v:media.source>
  • Inline usage example

    {v:media.source(additionalAttributes: {foo: 'bar'}, data: {foo: 'bar'}, media: 'NULL', width: 'NULL', height: 'NULL', maxW: 123, maxH: 123, minW: 123, minH: 123, format: 'NULL', quality: 123, relative: 1)}

Arguments

Argument Description Type
additionalAttributes

Additional tag attributes. They will be added directly to the resulting HTML tag.

array
data

Additional data-* attributes. They will each be added with a "data-" prefix.

array
format

Format of the processed file - also determines the target file format. If blank, TYPO3/IM/GM default is taken into account.

string
height

Height of the image. This can be a numeric value representing the fixed height of the image in pixels. But you can also perform simple calculations by adding "m" or "c" to the value. See imgResource.width for possible options.

string
maxH

Maximum Height of the image. (no upscaling)

integer
maxW

Maximum Width of the image. (no upscaling)

integer
media

Media query for which breakpoint this sources applies

string
minH

Minimum Height of the image.

integer
minW

Minimum Width of the image.

integer
quality

Quality of the processed image. If blank/not present falls back to the default quality defined in install tool.

integer
relative

Produce a relative URL instead of absolute

boolean
width

Width of the image. This can be a numeric value representing the fixed width of the image in pixels. But you can also perform simple calculations by adding "m" or "c" to the value. See imgResource.width for possible options.

string
Required attribute

Revision history