.. include:: /Includes.txt .. _configuration: Configuration ============= Reference --------- Properties of plugin.tx_ghrandomcontent_pi1. You can use the Constant Editor to change these settings. .. confval:: pages :type: :ref:`page\_id ` / :ref:`list ` :Default: 0 IDs of the pages, where the content is stored. .. confval:: count :type: :ref:`int+ ` :Default: 1 Number of content elements to show. .. confval:: honorLanguage :type: :ref:`boolean ` :Default: 0 If :php:`TRUE`, only content elements with the current sys_language_uid are considered. .. confval:: honorColPos :type: :ref:`boolean ` :Default: 0 If :php:`TRUE`, only content elements with the same column setting like the plugin itself are considered. .. confval:: defaultColPos :type: :ref:`int+ ` :Default: 0 Default column for honorColPos if plugin is included in the TypoScript setup. .. confval:: elementWrap :type: :ref:`wrap ` / :ref:`stdWrap ` :Default: | Wraps each single content element. .. confval:: allWrap :type: :ref:`wrap ` / :ref:`stdWrap ` :Default:
|
Wraps the whole output of the plugin. Examples -------- You can include the plugin directly in your TS setup: .. code-block:: typoscript 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: .. code-block:: typoscript plugin.tx_ghrandomcontent_pi1 { elementWrap =
  • |
  • elementWrap { stripHtml = 1 crop = 100|...|1 } allWrap =
      |
    }