Templates

Articles

Mimetype for articles

application/vnd.iptc.g2.newsitem+xml.article // {1}
  1. The mimetype for an article

Articles xml template

<newsItem conformance="power" guid="" standard="NewsML-G2" standardversion="2.20" version="1" 
    xmlns="http://iptc.org/std/nar/2006-10-01/">
    <catalogRef href="http://www.iptc.org/std/catalog/catalog.IPTC-G2-Standards_27.xml"/>
    <catalogRef href="http://infomaker.se/spec/catalog/catalog.infomaker.g2.1_0.xml"/>
    <itemMeta>
        <itemClass qcode="ninat:text"/>
        <provider literal="InfomakerConfig"/>
        <versionCreated>2017-02-13T10:06:17Z</versionCreated>
        <firstCreated>2016-10-14T11:13:17Z</firstCreated>
        <pubStatus qcode="imext:draft"/>
        <title>Template 1</title>
        <itemMetaExtProperty type="imext:type" value="x-im/article"/>
        <itemMetaExtProperty type="imext:uri" value="im://article/30eae1c0-c640-4053-b114-05c64e28bbe7"/>
        <links xmlns="http://www.infomaker.se/newsml/1.0"/>
    </itemMeta>
    <contentMeta>
        <contentCreated>2016-10-14T11:13:17Z</contentCreated>
        <contentModified>2017-02-13T10:06:17Z</contentModified>
        <metadata xmlns="http://www.infomaker.se/newsml/1.0">
            <object id="RYaudnAJj8gQ" type="x-im/newsvalue">
                <data>
                    <score>1</score>
                    <description>6H</description>
                    <text>PT6H</text>
                    <format>lifetimecode</format>
                    <end/>
                    <duration>21600</duration>
                </data>
            </object>

            <object id="MjQ0LDI4LDIxNSwxNzk" type="x-im/teaser" title="">
                <data>
                    <crops/>
                </data>
            </object>
        </metadata>
    </contentMeta>
    <contentSet>
        <inlineXML>
            <idf dir="ltr" xml:lang="sv" 
                xmlns="http://www.infomaker.se/idf/1.0">
                <group type="body">
                    <element id="headline-d1f5ac9f52fc17b4da89004c9c7493da" type="headline">Untitled</element>
                    <element id="preamble-a5efff9f3af396a0b0f095f2284b9023" type="preamble">Leadin här...</element>
                    <element id="paragraph-12cdd9b8d3fbf01a544e30b11751eef5" type="body">Brödtext här...</element>
                    <element id="paragraph-fa1cf2f3c973d42d6a7e95114b4a9366" type="body"/>
                    <element id="paragraph-030fc5b3a499bf3ed14c87ffc0cab1a8" type="body"/>
                </group>
            </idf>
        </inlineXML>
    </contentSet>
</newsItem>
  • The template opens up to set cetain values as default values i.e title could be changed to a default value

Assignments

Mimetype for assignments

  1. The mimetype for an assignment

Assignment xml template

  • The template opens up to set cetain values as default values i.e itemClass qcode could be changed to what item that should be default when creating new ones (see assignment types)

Planning items

Mimetype for planning items

  1. The mimetype for an planning items

PlanningItems xml template

  • The template opens up to set cetain values as default values i.e the default sector a item should belong to (this needs to be configured correctly in order for newly created items to get a sector)

Event

Mimetype for event

  1. The mimetype for an event

Event xml template

  • The template opens up to set cetain values as default values i.e the default sector a item should belong to (this needs to be configured correctly in order for newly created items to get a sector)

Last updated

Was this helpful?