Documentation · ViewHelper reference

Content / GetViewHelper

Content: Get ViewHelper

Gets all child content of a record based on area. /

  • Tag usage example

    <flux:content.get area="NULL" limit="123" offset="123" order="'sorting'" sortDirection="'ASC'" as="NULL" loadRegister="{foo: 'bar'}" render="1">
    	<!-- tag content - may be ignored! -->
    </flux:content.get>
  • Inline usage example

    {flux:content.get(area: 'NULL', limit: 123, offset: 123, order: ''sorting'', sortDirection: ''ASC'', as: 'NULL', loadRegister: {foo: 'bar'}, render: 1)}

Arguments

Argument Description Type
area

Name of the area to render

string
as

Variable name to register, then render child content and insert all results as an array of records

string
limit

Optional limit to the number of content elements to render

integer
loadRegister

List of LOAD_REGISTER variable

array
offset

Optional offset to the limit

integer
order

Optional sort order of content elements - RAND() supported

string
render

Optional returning variable as original table rows

boolean
sortDirection

Optional sort direction of content elements

string
Required attribute

Revision history

commit 1fa1afa15b9494dae5dacc38c72fb2ca14d3754e
Author: Björn Fromme <*****@bjo3rn.com>
Date:   Wed Apr 3 21:41:38 2013 +0200

    [TASK] Refactor content view helpers into their own group

commit da31bad1d9bb058c072ddb5591e8ed907a1ae8e1
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:08:37 2013 +0100

    [TASK] Happy new year!

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