Documentation · ViewHelper reference

XSD schema file | vhs master

Media / Image / MimetypeViewHelper

Returns the mimetype of the provided image file. /

  • Tag usage example

    <v:media.image.mimetype src="[mixed]" treatIdAsUid="1" treatIdAsReference="1">
    	<!-- tag content - may be ignored! -->
    </v:media.image.mimetype>
  • Inline usage example

    {v:media.image.mimetype(src: [mixed], treatIdAsUid: 1, treatIdAsReference: 1)}

Arguments

Argument Description Type
src

Path to or id of the image file to determine info for. In case a FileReference is supplied, treatIdAsUid and treatIdAsReference will automatically be activated.

mixed
treatIdAsReference

If TRUE, the path argument is treated as a reference uid and will be resolved to a resource via sysfilereference.

boolean
treatIdAsUid

If TRUE, the path argument is treated as a resource uid.

boolean
Required attribute

Revision history

commit 4a9d39fcf497d6a5dbd11bc1ec21ffaf8036a637
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Tue Jan 1 18:50:50 2013 +0100

    [FEATURE] Added image width, height and mimetype view helpers

commit 078017b44528630ed2df1d6685ee01484a5e47cc
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Sun May 26 16:06:33 2013 +0200

    [TASK] Adhere coding guidelines

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

commit 52bd6e41ccfef3d8193b350153912a9716e6a087
Author: Benjamin Rau <*****@codearts.at>
Date:   Tue Apr 1 21:09:00 2014 +0200

    [TASK] CGL compliance

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file