Import XML

Importing Proposal Sections

How to import proposal sections.

It is also possible to import an entire structure of proposal sections. To import proposal sections, the root element of an import XML file has to be <sophora>. This element must contain a child element <proposalSections> which encapsulates the <proposalSection> elements. Each <proposalSection> element represents one proposal section to import. During the import process each proposal section is identified by its full path name. So if a proposal section with a given name and path already exists this proposal section won't be imported.

The following example demonstrates the buildup of proposal sections import XML:

<?xml version="1.0" encoding="UTF-8"?>
<sophora xmlns="http://www.sophoracms.com/import/2.8"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <proposalSections>
    <proposalSection>
      <path>broken-links</path>
    </proposalSection>
    <proposalSection>
      <path>Homepage</path>
    </proposalSection>
    <proposalSection>
      <path>Homepage</path>
      <path>News</path>
    </proposalSection>
    <proposalSection>
      <path>Homepage</path>
      <path>Contact</path>
    </proposalSection>
  </proposalSections>
</sophora>

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