Documentation · ViewHelper reference

XSD schema file | vhs master

Media / FilesViewHelper

Returns an array of files found in the provided path. /

  • Tag usage example

    <v:media.files path="NULL" extensionList="''" prependPath="1" order="''" excludePattern="''">
    	<!-- tag content - may be ignored! -->
    </v:media.files>
  • Inline usage example

    {v:media.files(path: 'NULL', extensionList: '''', prependPath: 1, order: '''', excludePattern: '''')}

Arguments

Argument Description Type
excludePattern

A comma seperated list of filenames to exclude, no wildcards.

string
extensionList

A comma seperated list of file extensions to pick up.

string
order

If set to "mtime" sorts files by modification time or alphabetically otherwise.

string
path

Path to the folder containing the files to be listed.

string
prependPath

If set to TRUE the path will be prepended to file names.

boolean
Required attribute

Revision history

commit 04e9b3c2c8c226574a7020fdf8d56482e0319eaa
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Sun Dec 30 18:01:55 2012 +0100

    [FEATURE] Added Media\Files ViewHelper

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

    [FEATURE] Add Media\Extension ViewHelper

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 8bb2fc5ee124ba19b0a0ab8e061c9a153fc4651f
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 17:56:13 2015 +0100

    [TASK] Reference Copyright to license.md file