Documentation · ViewHelper reference

XSD schema file | vhs master

Content / InfoViewHelper

ViewHelper to access data of the current content element record. /

  • Tag usage example

    <v:content.info as="NULL" contentUid="123" field="NULL">
    	<!-- tag content - may be ignored! -->
    </v:content.info>
  • Inline usage example

    {v:content.info(as: 'NULL', contentUid: 123, field: 'NULL')}

Arguments

Argument Description Type
as

Template variable name to assign; if not specified the ViewHelper returns the variable instead.

string
contentUid

If specified, this UID will be used to fetch content element data instead of using the current content element.

integer
field

If specified, only this field will be returned/assigned instead of the complete content element record.

string
Required attribute

Revision history

commit b2089294d70bd6d7c22e730690387ad695de0ac2
Author: Benjamin Rau <*****@codearts.at>
Date:   Fri Apr 11 15:21:00 2014 +0200

    [FEATURE] ViewHelper to access data of current CE record

commit da7677bc74f14e9a9300e4ba4487e52c3cb97642
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Apr 20 01:13:33 2014 +0200

    [TASK] Switch to namespaces

commit 12ff0ddfb8d36c51f2d3befde7ae812177c80d5d
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Wed Jun 11 00:01:47 2014 +0200

    [TASK] CGL remove use leading backslash
    PHP Docs
    Note that for namespaced names (fully qualified namespace names containing namespace separator, such as Foo\Bar as opposed to global names that do not, such as FooBar),
    the leading backslash is unnecessary and not recommended, as import names must be fully qualified, and are not processed relative to the current namespace.

commit 4981055359c895f3869e5bd878293b3c15ed26e5
Author: Xaver Maierhofer <*****@xwissen.info>
Date:   Sun Jan 18 14:01:04 2015 +0100

    [TASK] CGL - Define classes, params, use imports

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

    [TASK] Reference Copyright to license.md file