templatesIncludeItems

Bindet die angegebenen Mastertemplate-Elemente eines Dokumentes ein

TAG

<wslMastertemplate:templatesIncludeItems document="" />

Attribute

[PATH]
document *
Dokument mit den einzubindenden Elementen.
String
group
Gruppe mit den einzubindenden Elementen
[XPATH]
xPath
xPath der einzubindenden Elementen

Beispiel 1: Auszug aus /[IHR-LAYOUT-PROJEKT]/wGlobal/mastertemplates/standard.wMastertemplate.php

...
  <wd:group name="content1">
    <!-- Item wird innerhalb wd:group name="content1" erwartet -->
    <wslMastertemplate:templatesIncludeItems document="/[IHR-LAYOUT-PROJEKT]/wGlobal/mastertemplates/items/default.wItemMastertemplate.php" group="content1" xPath="" />
  </wd:group>
  <!-- Auszug aus dem document siehe Beispiel 1.1 -->
...

Beispiel 1.1: Auszug aus text.wysiwyg.wItemMastertemplate.php von Beispiel 1

<?php $version="1.0"; $encoding="UTF-8"; ?>
<?php exit; ?>
<wd:document xmlns:wslMastertemplate="http://weblication.de/5.0/wslMastertemplate" xmlns:en="/en" xmlns:fr="/fr" xmlns:wsl="http://weblication.de/5.0/wsl" xmlns:wd="http://weblication.de/5.0/wd" version="1.0" type="page.standard">
  <wd:extension type="weblication" version="5.0" uid="58983c5932ef8b0204f15c040f55d152">
    ...
      <wd:cache expires="{wGetValueOfDefaultExtension()}"/>
  </wd:extension>
  <wd:group name="content1">

    <wd:item name="Überschrift" en:name="Headline" icon="/[IHR-LAYOUT-PROJEKT]/wGlobal/layout/images/element-icons/element_headline.gif" type="headline.default">
      <wd:fragment id="title" type="char.text"/>
      <wd:fragment id="display" type="char.display"/>
      <wd:fragment id="text" type="text.standard"><![CDATA[Überschrift]]></wd:fragment>
    </wd:item>
    <wd:item name="Fliesstext" en:name="Text" icon="/[IHR-LAYOUT-PROJEKT]/wGlobal/layout/images/element-icons/element_text.gif" type="text.default">
      <wd:fragment id="title" type="char.text"/>
      <wd:fragment id="display" type="char.display"/>
      <wd:fragment id="text" type="text.standard"><![CDATA[<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Ut commodo pretium nisl. Integer sit amet lectus. Nam suscipit magna nec nunc. Maecenas eros ipsum, malesuada at, malesuada a, ultricies dignissim, justo. Mauris gravida dui eget elit.</p>]]></wd:fragment>
    </wd:item>

  </wd:group>
</wd:document>
...