Blockhead and block elements

Build 1501 on 14/Nov/2017  This topic last edited on: 12/Jan/2016, at 17:24

You may want to have multiple pull quote or block elements tied to their relative headline elements and displayed in the article tree in a recognizable order.

In this example, there are three block elements, each preceded with the related blockhead element.

blockhead

To achieve such structure, modify the schema by

Click to toggle expandAdd block and blockhead elements
Click to toggle expandAdd a group of two elements
Click to toggle expandAdd the group to the section <xs:complexType name="_articleTxts">:

  <xs:complexType name="_articleTxts">

    <xs:annotation>

      <xs:documentation>The texts contained in an article</xs:documentation>

    </xs:annotation>

    <xs:sequence>

      <xs:element ref="head" minOccurs="0" maxOccurs="1"/>

      <xs:element ref="webHead" minOccurs="0" maxOccurs="1"/>

      <xs:element ref="blogPost" minOccurs="0" maxOccurs="1"/>

      <xs:element ref="jumpHead" minOccurs="0" maxOccurs="1"/>

      <xs:element ref="subhead" minOccurs="0" maxOccurs="1"/>

      <xs:element ref="kicker" minOccurs="0" maxOccurs="1"/>

      <xs:element ref="intro" minOccurs="0" maxOccurs="1"/>

      <xs:element ref="body" minOccurs="0" maxOccurs="1"/>

      <xs:element ref="webBody" minOccurs="0" maxOccurs="unbounded"/>

      <xs:element ref="smsBody" minOccurs="0" maxOccurs="unbounded"/>

      <xs:element ref="twitterMsg" minOccurs="0" maxOccurs="unbounded"/>

      <xs:element ref="facebookMsg" minOccurs="0" maxOccurs="unbounded"/>

      <xs:element ref="pullquote" minOccurs="0" maxOccurs="unbounded"/>

      <xs:element ref="photoCaption" minOccurs="0" maxOccurs="unbounded"/>

      <xs:element ref="urlCaption" minOccurs="0" maxOccurs="unbounded"/>

      <xs:element ref="audioCaption" minOccurs="0" maxOccurs="unbounded"/>

      <xs:element ref="videoCaption" minOccurs="0" maxOccurs="unbounded"/>

      <xs:element ref="galleryCaption" minOccurs="0" maxOccurs="unbounded"/>

      <xs:group ref="blocks" minOccurs="0" maxOccurs="unbounded"/>

    </xs:sequence>

  </xs:complexType>