$documentData = wDocumentData::getDataObjectAsArray($_SERVER['PHP_SELF'], true); /*Name Objektfeld*/ $keyMulti= 'multi'; /*Attributname/Textknoten für Akk-Überschrift*/ $keyAcHead = 'head'; /*Attributname/Textknoten für Akk-Inhalt*/ $keyAcContent = 'text()'; $xmlStr.= '<wd:item type="container.accordion" uid="ddf5ec9ffed17d7085096343153060fe"> <wd:fragment id="title" type="char.text"/> <wd:fragment id="display" type="char.display"/> <wd:fragment id="autoHeight" type="char.default">false</wd:fragment> <wd:fragment id="initOpen" type="char.default">false</wd:fragment> <wd:fragment id="rememberSelectedTab" type="char.default">0</wd:fragment> <wd:fragment id="layout">0</wd:fragment> <wd:fragment id="collapsible" type="char.default">1</wd:fragment> <wd:fragment id="openMultiple" type="char.default">1</wd:fragment> <wd:fragment id="allowOpenAll" type="char.default"/> <wd:group id="accordion">'; foreach($documentData[$keyMulti] as $value){ $xmlStr .= '<wd:item type="container.accordionItem" uid="bdde73f92e7c1200fe768f8a62088aad"> <wd:fragment id="title" type="char.text">'.$value[$keyAcHead].'</wd:fragment> <wd:fragment id="display" type="char.display"/> <wd:group id="container"> <wd:item type="text.wysiwyg" uid="1ba0bbeb3df3805489963c05a354716a"> <wd:fragment id="title" type="char.text"/> <wd:fragment id="display" type="char.display"/> <wd:fragment id="text" type="text.standard"><![CDATA['.$value[$keyAcContent ].']]></wd:fragment> <wd:fragment id="layout" type="char.default"/> <wd:fragment id="layoutListStyle" type="char.default"/> </wd:item> </wd:group> </wd:item>'; } $xmlStr .= '</wd:group> <wd:fragment id="rememberSelected" type="char.default"/> <wd:fragment id="layoutOptions" type="char.default"/> <wd:fragment id="group" type="char.default"/> </wd:item>'; print wWeblic::renderItemStr($xmlStr, array('includeItemsProject' => true, 'pathProjectLayout' => '/[IHR-LAYOUT-PROJEKT]'));