Import XML | Version 3

Channels

How to activate or deactivate a document for specific channels.

Archived documentation for Sophora 3. End-of-support date for this version: 7/25/21

Documentation for Sophora 4

The document can be activated or deactivated for specific channels. This is done using the <channels> element in the <fields> element:

<?xml version="1.0" encoding="UTF-8"?>
<document nodeType="sophora-content-nt:imageobject"
          xmlns="http://www.sophoracms.com/import/3.7">
  [...]
  <fields>
    [...]
    <channels>
      <enabledChannels remove="true">
        <channel>mediathek</channel>
        <channel startDate="2012-09-07T09:37:53.716+02:00" endDate="2012-10-07T09:37:53.716+02:00">teletext</channel>
      </enabledChannels>
      <disabledChannels remove="true">
        <channel>rss</channel>
      </disabledChannels>
    </channels>
    [...]
  </fields>
</document>

The <enabledChannels> element contains zero or more <channel> elements. Each <channel> element specifies the name of a channel which the document should be activated for.

The optional remove attribute of the <enabledChannels> element can be used to reset existing channels.

The optional startDate and endDate attributes of the <channel> element can be used to enable the channel during that time only.

The <disabledChannels> element contains zero or more <channel> elements. Each <channel> element specifies the name of a channel which the document should be deactivated for.

The optional remove attribute of the <disabledChannels> element can be used to reset existing channels.

Last modified on 10/2/20

The content of this page is licensed under the CC BY 4.0 License. Code samples are licensed under the MIT License.

Icon