ViewHelper Documentation


ViewHelper for rendering a random content element in Fluid page templates


column integer

Name of the column to render

order string

Optional sort field of content elements - RAND() supported. Note that when sliding is enabled, the sorting will be applied to records on a per-page basis and not to the total set of collected records.

sortDirection string

Optional sort direction of content elements

pageUid integer

If set, selects only content from this page UID

contentUids anySimpleType

If used, replaces all conditions with an "uid IN (1,2,3)" style condition using the UID values from this array

sectionIndexOnly boolean

If TRUE, only renders/gets content that is marked as "include in section index"

loadRegister anySimpleType

List of LOAD_REGISTER variable

render boolean

Optional returning variable as original table rows

hideUntranslated boolean

If FALSE, will NOT include elements which have NOT been translated, if current language is NOT the default language. Default is to show untranslated elements but never display the original if there is a translated version

limit integer

Optional limit to the number of content elements to render

slide integer

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

slideCollect integer

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.

slideCollectReverse boolean

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))

ViewHelper Resources

Schema Resources