Documentation · ViewHelper reference

XSD schema file | vhs master

Format / PrependViewHelper

Format: Prepend string content

Prepends one string on another. Although this task is very easily done in standard Fluid - i.e. {add}{subject} - this ViewHelper makes advanced chained inline processing possible:

{dateTime.timestamp
    -> v:math.sum(b: 3600)
    -> v:format.date(format: 'Y-m-d H:i')}
<!-- You don't have to break the syntax into lines; done here for display only -->

/

  • Tag usage example

    <v:format.prepend subject="NULL" add="NULL">
    	<!-- tag content - may be ignored! -->
    </v:format.prepend>
  • Inline usage example

    {v:format.prepend(subject: 'NULL', add: 'NULL')}

Arguments

Argument Description Type
add

String to prepend

string
subject

String to prepend other string to

string
Required attribute

Revision history

commit b551dca9d4d4c19eb739e9b90387decd77d20395
Author: Claus Due <*****@wildside.dk>
Date:   Wed Jan 23 23:29:15 2013 +0100

    [FEATURE] Format / Prepend and Format / Append ViewHelpers

commit d7ca0b0b6e639d0e511589a1e88d6105c1bb3e4d
Author: Benjamin Rau <*****@codearts.at>
Date:   Thu Aug 22 13:50:39 2013 +0200

    [BUGFIX] Changed order of arguments in PrependViewHelper to support renderChildren

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 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