Documentation · ViewHelper reference

Content / RenderViewHelper

Content: Render ViewHelper

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

  • Tag usage example

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

    {flux:content.render(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 80f900fcb02a682e79ef34dce3c5af19640508c9
Author: Claus Due <*****@wildside.dk>
Date:   Tue Mar 5 00:25:15 2013 +0100

    [TASK] Refactor renderContent ViewHelper to Content / Get and Content / Render ViewHelpers

commit 5511d72d220d89627255e270d3ca178362f6c2b2
Author: Claus Due <*****@namelesscoder.net>
Date:   Sun Nov 24 19:31:01 2013 +0100

    [TASK] Switch to namespaces

commit 3878c943a6eb0924bb6db2e5ed8461580896431f
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 10 01:59:34 2013 +0100

    [TASK] Update copyright and author tags
    
    Assumes "Claus Due" as author whenever no author is specified.

commit 8bf2b5beb89c7d72a41230f152d9a5a3d308ba84
Author: Claus Due <*****@namelesscoder.net>
Date:   Tue Dec 31 23:11:00 2013 +0100

    [TASK] Happy new year!