Book Image

concrete5 Beginner's Guide

Book Image

concrete5 Beginner's Guide

Overview of this book

Table of Contents (19 chapters)
concrete5
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – adding product categories


Carry out the following steps:

  1. Open db.xml for your block; we've got to make a few modifications. The file should look like the following afterwards:

    <?xml version="1.0"?>
    <schema version="0.3">
       <table name="btProductInformation">
          <field name="bID" type="I">
             <key />
             <unsigned />
          </field>
          <field name="title" type="C" size="255"></field>      
          <field name="description" type="X2"></field>
          <field name="fIDpicture" type="I"></field>
          <field name="categoryID" type="I"></field>
       </table>
       <table name="btProductInformationCategories">
       <field name="categoryID" type="I">
          <autoincrement />
          <key />
          <unsigned />
       </field>
       <field name="category" type="C" size="255"></field>
       <index name="btProductInformationCategories_IX">
      ...