Documentation · ViewHelper reference

XSD schema file | vhs master

Media / ExtensionViewHelper

Returns the extension of the provided file. /

  • Tag usage example

    <v:media.extension file="NULL">
    	<!-- tag content - may be ignored! -->
    </v:media.extension>
  • Inline usage example

    {v:media.extension(file: 'NULL')}

Arguments

Argument Description Type
file

Path to the file to determine extension for.

string
Required attribute

Revision history

commit b3fba88ad688d457776bfa1aaae2deea0400ec17
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Sun Dec 30 20:03:48 2012 +0100

    [FEATURE] Add Media\Extension ViewHelper

commit 7130052708497743f0a2e01914609b970c418ec1
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Tue Jan 1 19:49:58 2013 +0100

    [BUGFIX] File paths are now determined using t3lib_div::getFileAbsFileName() for better compatibility

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

    [TASK] Happy new year!

commit d2e531da034976e6db1478eef5a8478595fd16fe
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Jan 5 00:45:10 2014 +0100

    [TASK] Migrate to using namespace core class names

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 753cc7d27d3463bdbcb1588b2098c80d6ca51ca3
Author: Benjamin Rau <*****@codearts.at>
Date:   Thu Aug 28 13:30:43 2014 +0200

    [BUGFIX] Argument has to be optional to allow use of tag children

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

    [TASK] Reference Copyright to license.md file