Templates
Articles
Mimetype for articles
application/vnd.iptc.g2.newsitem+xml.article // {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
application/vnd.iptc.g2.planningitem+xml.assignment // {1}
The mimetype for an assignment
Assignment xml template
<planning xmlns="http://iptc.org/std/nar/2006-10-01/" standard="NewsML-G2" standardversion="2.26" guid="" conformance="power">
<itemClass qcode="ninat:text"/>
<headline></headline>
<description role="nrpdesc:intern"/>
<planningExtProperty type="imext:status" value="imext:draft"/>
<planningExtProperty type="nrpdate:start" value=""/>
<planningExtProperty type="nrpdate:end" value=""/>
<planningExtProperty type="nrpdate:created" value=""/>
<planningExtProperty type="nrpdate:modified" value=""/>
<links xmlns="http://www.infomaker.se/newsml/1.0"></links>
</planning>
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
application/vnd.iptc.g2.planningitem+xml // {1}
The mimetype for an planning items
PlanningItems xml template
<planningItem xmlns="http://iptc.org/std/nar/2006-10-01/" standard="NewsML-G2" standardversion="2.26" guid="" conformance="power">
<catalogRef href="http://www.iptc.org/std/catalog/catalog.IPTC-G2-Standards_30.xml"/>
<catalogRef href="http://infomaker.se/spec/catalog/catalog.infomaker.g2.1_0.xml"/>
<rightsInfo>
<copyrightHolder>
<name>__INSERT_NAME_HERE__</name>
</copyrightHolder>
</rightsInfo>
<itemMeta>
<itemClass qcode="plinat:newscoverage"/>
<provider literal="__INSERT_LITERAL_HERE__"/>
<firstCreated></firstCreated>
<versionCreated></versionCreated>
<pubStatus qcode="imext:draft"/>
<role qcode="nrprole:"/>
<itemMetaExtProperty type="nrpdate:start" value="" why="nrpwhy:datetime"/>
<itemMetaExtProperty type="nrpdate:end" value="" why="nrpwhy:datetime"/>
<itemMetaExtProperty type="nrpdate:created" value=""/>
<itemMetaExtProperty type="nrpdate:modified" value=""/>
<itemMetaExtProperty type="imext:type" value="x-im/newscoverage"/>
<links xmlns="http://www.infomaker.se/newsml/1.0"></links>
</itemMeta>
<contentMeta>
<urgency>1</urgency>
<contentCreated />
<contentModified />
<headline></headline>
<slugline></slugline>
<description role="nrpdesc:intern"/>
<description role="nrpdesc:extern"/>
<contentMetaExtProperty type="nrp:sector" literal="__READABLE_VALUE__" value="__VALUE_TO_BE_STORED__"/>
</contentMeta>
<newsCoverageSet>
</newsCoverageSet>
</planningItem>
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
application/vnd.iptc.g2.conceptitem+xml.event // {1}
The mimetype for an event
Event xml template
<conceptItem xmlns="http://iptc.org/std/nar/2006-10-01/" standard="NewsML-G2" standardversion="2.26" guid="" conformance="power">
<catalogRef href="http://www.iptc.org/std/catalog/catalog.IPTC-G2-Standards_30.xml"/>
<catalogRef href="http://infomaker.se/spec/catalog/catalog.infomaker.g2.1_0.xml"/>
<rightsInfo>
<copyrightHolder>
<name>__INSERT_NAME_HERE__</name>
</copyrightHolder>
</rightsInfo>
<itemMeta>
<itemClass qcode="cinat:concept"/>
<provider literal="__INSERT_LITERAL_HERE__"/>
<firstCreated></firstCreated>
<versionCreated></versionCreated>
<pubStatus qcode="imext:draft"/>
<itemMetaExtProperty type="imext:type" value="x-im/event"/>
<itemMetaExtProperty type="nrpdate:start" value="" why="nrpwhy:datetime"/>
<itemMetaExtProperty type="nrpdate:end" value="" why="nrpwhy:datetime"/>
<itemMetaExtProperty type="nrpdate:created" value=""/>
<itemMetaExtProperty type="nrpdate:modified" value=""/>
<links xmlns="http://www.infomaker.se/newsml/1.0"></links>
</itemMeta>
<contentMeta>
<contentCreated></contentCreated>
<contentModified></contentModified>
<description role="nrpdesc:extern"/>
<contentMetaExtProperty type="nrp:sector" literal="__READABLE_VALUE__" value="__VALUE_TO_BE_STORED__"/>
<links xmlns="http://www.infomaker.se/newsml/1.0"></links>
</contentMeta>
<concept>
<conceptId uri="im://event/" creator=""/>
<type qcode="cpnat:event"/>
<name></name>
<metadata xmlns="http://www.infomaker.se/newsml/1.0">
<object id="d1e25" type="x-im/event-details">
<data>
<registration/>
</data>
</object>
</metadata>
</concept>
</conceptItem>
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