Documentation · ViewHelper reference

XSD schema file | vhs master

Page / Resources / FalViewHelper

Page FAL resource ViewHelper. /

  • Tag usage example

    <v:page.resources.fal table="'pages'" field="'media'" record="{foo: 'bar'}" uid="123" as="NULL" limit="123" slide="123" slideCollect="123" slideCollectReverse="1">
    	<!-- tag content - may be ignored! -->
    </v:page.resources.fal>
  • Inline usage example

    {v:page.resources.fal(table: ''pages'', field: ''media'', record: {foo: 'bar'}, uid: 123, as: 'NULL', limit: 123, slide: 123, slideCollect: 123, slideCollectReverse: 1)}

Arguments

Argument Description Type
as

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

string
field

The field of the table associated to resources.

string
limit

Optional limit to the total number of records to render

integer
record

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

array
slide

Enables Record Sliding - amount of levels which shall get walked up the rootline, including the current page. For infinite sliding (till the rootpage) set to -1. Only the first PID which has at minimum one record is used

integer
slideCollect

If TRUE, content is collected up the root line. If FALSE, only the first PID which has content is used. If greater than zero, this value overrides $slide.

integer
slideCollectReverse

Normally when collecting records the elements from the actual page get shown on the top and those from the parent pages below those. You can invert this behaviour (actual page elements at bottom) by setting this flag))

boolean
table

The table to lookup records.

string
uid

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

integer
Required attribute

Revision history

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

    [FEATURE] Added record view helper

commit 52bd6e41ccfef3d8193b350153912a9716e6a087
Author: Benjamin Rau <*****@codearts.at>
Date:   Tue Apr 1 21:09:00 2014 +0200

    [TASK] CGL compliance

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