Documentation · ViewHelper reference

XSD schema file | vhs master

Count / LinesViewHelper

Counts number of lines in a string.

Usage examples

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

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

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

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

/

  • Tag usage example

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

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

Arguments

Argument Description Type
string

String to count, if not provided as tag content

string
Required attribute

Revision history