.. include:: /Includes.rst.txt .. index:: Content objects; CONTENT CONTENT Content objects; SQL Content objects; Database .. _cobj-content: ======= CONTENT ======= An object with the content type CONTENT is designed to generate content by allowing to finely select records and have them rendered. What records are visible is controlled by `start` and `end` fields and more standard fields automatically. The internal value `SYS_LASTCHANGED` is raised to the maximum timestamp value of the respective records. .. seealso:: The cObject :ref:`RECORDS ` in contrast is for displaying lists of records from a variety of tables without fine graining. .. contents:: Table of content .. _cobj-content-properties: Properties ========== .. confval-menu:: :display: table :type: .. _cobj-content-if: if -- .. confval:: if :name: content-if :type: :ref:`->if ` If "if" returns false, the content is not generated. .. _cobj-content-select: select ------ .. confval:: select :name: content-select :type: :ref:`select `, :ref:`Wrap `, :ref:`stdWrap `, :ref:`Content Objects (cObject) ` .. _cobj-content-example-display-all: Display all tt_content records from this page ---------------------------------------------- Here is an example of the CONTENT object: .. literalinclude:: _codesnippets/_all.typoscript :caption: EXT:my_sitepackage/Configuration/Sets/Main/setup.typoscript Since in the above example `.renderObj` is not set explicitly, TYPO3 will automatically set :typoscript:`1.renderObj < tt_content`, so that `renderObj` will reference the TypoScript configuration of `tt_content`. The according TypoScript configuration will be copied to `renderObj`. .. _cobj-content-special-rendering: Apply special rendering ======================== Here is an example of record-rendering objects: .. literalinclude:: _codesnippets/_rendering.typoscript :caption: EXT:my_sitepackage/Configuration/Sets/Main/setup.typoscript