.. include:: /Includes.rst.txt .. index:: Content objects; Array Content objects; Content object array Content objects; COA Content objects; COA_INT .. _cobj-cobj-array: .. _cobj-coa: .. _cobj-coa-int: ==================================== Content object array - COA, COA\_INT ==================================== .. note:: * COA is an object type (= complex data type). * It is a specific :ref:`cObject ` data type. COA stands for "content object array". An object with the content type COA is a cObject, in which you can place several other cObjects using numbers to enumerate them. You can also create this object as a COA\_INT in which case it works exactly like the :ref:`USER_INT ` object does: It's rendered non-cached! That way you cannot only render non-cached :ref:`USER_INT ` objects, but COA\_INT allows you to render *every* cObject non-cached. .. contents:: :local: .. _cobj-coa-properties: Properties ========== .. _cobj-coa-index: 1,2,3,4... ----------- .. confval:: 1,2,3,4... :name: coa-array :Data type: :ref:`cObject ` Numbered properties to define the different cObjects, which should be rendered. .. _cobj-coa-cache: cache ----- .. confval:: cache :name: coa-cache :Data type: :ref:`cache ` See :ref:`cache function description ` for details. .. _cobj-coa-if: if -- .. confval:: if :name: coa-if :Data type: :ref:`->if ` If `if` returns false, the COA is **not** rendered. .. _cobj-coa-stdWrap: stdWrap ------- .. confval:: stdWrap :name: coa-stdWrap :Data type: :ref:`->stdWrap ` Executed on all rendered cObjects after property :ref:`cobj-coa-wrap`. .. _cobj-coa-wrap: wrap ---- .. confval:: wrap :name: coa-wrap :Data type: :ref:`wrap ` / :ref:`stdWrap ` Wraps all rendered cObjects. Executed before property :ref:`cobj-coa-stdWrap`. .. _cobj-cobj-array-examples: .. _cobj-coa-examples: .. _cobj-coa-int-examples: Examples: ========= .. code-block:: typoscript :caption: EXT:site_package/Configuration/TypoScript/setup.typoscript lib.contentexample = COA lib.contentexample { 10 = TEXT 10.value =

Header

20 = CONTENT 20 { table = tt_content select.orderBy = sorting select.where = {#colPos}=0 } 30 = TEXT 30.value =
Footer text
} The previous example will print a simple :html:`

` header, followed by the page content records and a :html:`