Documentation · ViewHelper reference

XSD schema file | vhs 2.1.4

Resource / RecordViewHelper

  • Tag usage example

    <v:resource.record table="NULL" field="NULL" record="{foo: 'bar'}" uid="123" as="NULL">
    	<!-- tag content - may be ignored! -->
  • Inline usage example

    {v:resource.record(table: 'NULL', field: 'NULL', record: {foo: 'bar'}, uid: 123, as: 'NULL')}


Argument Description Type

If specified, a template variable with this name containing the requested data will be inserted instead of returning it.


The field of the table associated to resources.


The actual record. Alternatively you can use the "uid" argument.


The table to lookup records.


The uid of the record. Alternatively you can use the "record" argument.

Required attribute

Revision history

commit c773c4577d737b6dd6a792b7a3b4290c193336f9
Author: Danilo Bürger <*****>
Date:   Sat Nov 16 14:44:10 2013 +0100

    [FEATURE] Added record view helper

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

    [TASK] Switch to namespaces

commit 12ff0ddfb8d36c51f2d3befde7ae812177c80d5d
Author: Xaver Maierhofer <*****>
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 <*****>
Date:   Sun Jan 18 14:01:04 2015 +0100

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

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

    [TASK] Reference Copyright to file