---
title: "Configuration"
manual: "GH Random Content"
version: "1.4"
permalink: "https://docs.typo3.org/permalink/amazing/gh-randomcontent:configuration@1.4"
source: "Configuration/Index.rst"
rendered: "2026-11-02T15:21:00+00:00"
---

# Configuration {#configuration}

## TypoScript Setup and Constants {#typoscript-setup-and-constants}

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

### pages {#confval-pages}

-   ***Property:***

    pages

-   ***Data type:***

    [integer](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-integer) / list

-   ***Description:***

    IDs of the pages, where the content is stored.

-   ***Default:***

    0

### count {#confval-count}

-   ***Property:***

    count

-   ***Data type:***

    [integer](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-integer)

-   ***Description:***

    Number of content elements to show.

-   ***Default:***

    1

### honorColPos {#confval-honorcolpos}

-   ***Property:***

    honorColPos

-   ***Data type:***

    [boolean](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-boolean)

-   ***Description:***

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

-   ***Default:***

    0

### defaultColPos {#confval-defaultcolpos}

-   ***Property:***

    defaultColPos

-   ***Data type:***

    [integer](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Syntax/StringFormats/Index.html#data-type-integer)

-   ***Description:***

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

-   ***Default:***

    0

### elementWrap {#confval-elementwrap}

-   ***Property:***

    elementWrap

-   ***Data type:***

    [wrap](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Functions/Wrap.html#data-type-wrap) / [stdWrap](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Functions/Stdwrap.html#stdwrap)

-   ***Description:***

    Wraps each single content element.

-   ***Default:***

    |

### allWrap {#confval-allwrap}

-   ***Property:***

    allWrap

-   ***Data type:***

    [wrap](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Functions/Wrap.html#data-type-wrap) / [stdWrap](https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Functions/Stdwrap.html#stdwrap)

-   ***Description:***

    Wraps the whole output of the plugin.

-   ***Default:***

    \<div class=”tx-ghrandomcontent-pi1”>|\</div>

## Examples {#examples}

You can include the plugin directly in your TypoScript setup:

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

Change the output using stdWrap properties:

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