Documentation · ViewHelper reference

XSD schema file | vhs master

Count / WordsViewHelper

Counts words in a string.

Usage examples

<v:count.words>{myString}</v:count.words> (output for example `42`

{myString -> v:count.words()} when used inline

<v:count.words string="{myString}" />

{v:count.words(string: myString)}

/

  • Tag usage example

    <v:count.words string="NULL">
    	<!-- tag content - may be ignored! -->
    </v:count.words>
  • Inline usage example

    {v:count.words(string: 'NULL')}

Arguments

Argument Description Type
string

String to count, if not provided as tag content

string
Required attribute

Revision history