Configuring the database information about the page

The Pod page requires 2 database records to operate. The PAGECONFIG table stores information about which Pods are available on the page. The USERPAGECONFIG table stores the users customizations. Add the following DMX files to the component. Run the database build target to insert the records.

Figure 1. PAGECONFIG.DMX
<?xml version="1.0" encoding="UTF-8"?>
<table name="PAGECONFIG">
  <column name="pageConfigID" type="id"/>
  <column name="userRoleName" type="text"/>
  <column name="pageID" type="text"/>
  <column name="config" type="text"/>
  <column name="versionNo" type="number"/>

  <row>
    <attribute name="pageConfigID">
      <value>9999</value>
    </attribute>
    <attribute name="userRoleName">
      <value></value>
    </attribute>
    <attribute name="pageID">
      <value>MyPodContainer</value>
    </attribute>
    <attribute name="config">
      <value> 
       &lt;page-config&gt;
       &lt;contexts&gt;
       &lt;sequence domain="CURAM_CONTEXT"/&gt;
       &lt;/contexts&gt;
       &lt;availablePods&gt;
       &lt;sequence domain="POD_TYPE_SELECT"&gt;
       &lt;/sequence&gt;
       &lt;/availablePods&gt;
       &lt;layout&gt;
       &lt;sequence domain="COL_SIZE"&gt;
       &lt;value&gt;33&lt;/value&gt;
       &lt;value&gt;33&lt;/value&gt;
       &lt;value&gt;33&lt;/value&gt;
       &lt;/sequence&gt;
       &lt;/layout&gt;&lt;/page-config&gt;
      </value>
    </attribute>
    <attribute name="versionNo">
      <value>1</value>
    </attribute>
  </row>  
</table>
Figure 2. USERPAGECONFIG.DMX
<?xml version="1.0" encoding="UTF-8"?>
<table name="USERPAGECONFIG">
  <column name="userPageConfigID" type="id"/>
  <column name="userRoleName" type="text"/>
  <column name="userName" type="text"/>
  <column name="pageID" type="text"/>
  <column name="config" type="text"/>
  <column name="defaultInd" type="bool"/>
  <column name="versionNo" type="number"/>
  <row>
    <attribute name="userPageConfigID">
      <value>9999</value>
    </attribute>
    <attribute name="userRoleName">
      <value></value>
    </attribute>
    <attribute name="userName">
      <value/>
    </attribute>
    <attribute name="pageID">
      <value>MyPodContainer</value>
    </attribute>
    <attribute name="config">
      <value>
       &lt;user-page-config&gt;&lt;/user-page-config&gt;
      </value>
    </attribute>
    <attribute name="defaultInd">
      <value>1</value>
    </attribute>
    <attribute name="versionNo">
      <value>1</value>
    </attribute>
  </row>
</table>