.. include:: /Includes.rst.txt .. _cobj-cobj-array: .. _cobj-coa: .. _cobj-coa-int: 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. .. ### BEGIN~OF~TABLE ### .. container:: table-row Property if Data type :ref:`->if ` Description If "if" returns false, the COA is **not** rendered. .. container:: table-row Property 1,2,3,4... Data type :ref:`cObject ` Description Numbered properties to define the different cObjects, which should be rendered. .. container:: table-row Property wrap Data type :ref:`wrap ` /:ref:`stdWrap ` .. container:: table-row Property stdWrap Data type :ref:`->stdWrap ` .. include:: ../../DataTypes/Properties/Cache.rst.txt .. ###### END~OF~TABLE ###### [tsref:(cObject).COA/(cObject).COA\_INT] .. _cobj-cobj-array-examples: .. _cobj-coa-examples: .. _cobj-coa-int-examples: Examples: """"""""" :: 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 = } The previous example will print a simple h1 header, followed by the page content records and a footer element. :: lib.currentDate = COA_INT lib.currentDate { 10 = TEXT 10.stdWrap.data = date:U 10.stdWrap.strftime = %H:%M:%S } This example will not be cached and so will display the current time on each page hit.