Configuration

Reference

Properties of plugin.tx_ghrandomcontent_pi1. You can use the Constant Editor to change these settings.

pages
Type:page_id / list
Default:0

IDs of the pages, where the content is stored.

count
Type:int+
Default:1

Number of content elements to show.

honorLanguage
Type:boolean
Default:0

If TRUE, only content elements with the current sys_language_uid are considered.

honorColPos
Type:boolean
Default:0

If TRUE, only content elements with the same column setting like the plugin itself are considered.

defaultColPos
Type:int+
Default:0

Default column for honorColPos if plugin is included in the TypoScript setup.

elementWrap
Type:wrap / stdWrap
Default:

Wraps each single content element.

allWrap
Type:wrap / stdWrap
Default:<div class=”tx-ghrandomcontent-pi1”>|</div>

Wraps the whole output of the plugin.

Examples

You can include the plugin directly in your TS setup:

plugin.tx_ghrandomcontent_pi1 {
  pages = 12,15
  count = 1
  honorLanguage = 1
  honorColPos = 1
  defaultColPos = 0
}page.10 < plugin.tx_ghrandomcontent_pi1
…

Change the output using stdWrap properties:

plugin.tx_ghrandomcontent_pi1 {
  elementWrap = <li>|</li>
  elementWrap {
    stripHtml = 1
    crop = 100|...|1
  }
  allWrap = <ul>|</ul>
}