Configuration 

TypoScript Setup and Constants 

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

pages 

Property:
pages
Data type:
integer / list
Description:
IDs of the pages, where the content is stored.
Default:
0

count 

Property:
count
Data type:
integer
Description:
Number of content elements to show.
Default:
1

honorColPos 

Property:
honorColPos
Data type:
boolean
Description:
If TRUE, only content elements with the same column setting like the plugin itself are considered.
Default:
0

defaultColPos 

Property:
defaultColPos
Data type:
integer
Description:
Default column for honorColPos if plugin is included in the TypoScript Setup.
Default:
0

elementWrap 

Property:
elementWrap
Data type:
wrap / stdWrap
Description:
Wraps each single content element.
Default:
|

allWrap 

Property:
allWrap
Data type:
wrap / stdWrap
Description:
Wraps the whole output of the plugin.
Default:
<div class=”tx-ghrandomcontent-pi1”>|</div>

Examples 

You can include the plugin directly in your TypoScript setup:

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

Change the output using stdWrap properties:

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