Definition

Navigation:  Development > CategorySet >

Definition

Previous pageReturn to chapter overviewNext page

A CategorySet is a XML definition to configure Fields, Access, User Interface etc. See below example:
 

<?xml version="1.0" encoding="utf-8"?>
<CategorySet>
    <base>
        <version>0.1.0</version>
        <lastupdate>2009-12-01</lastupdate>
        <title>Blog Category</title>
        <admin_tab>blog</admin_tab>
        <parameters>
            <parameter name="delete">No</parameter>
        </parameters>      
        <description>Yes</description>      
        <image>
            <status>No</status>
            <!-- Multiple/Single-->
            <type>Single</type>
        </image>
        <haschild>Yes</haschild>
        <generic>
            <status>Yes</status>
            <title>Sort Order</title>
        </generic>
        <sreach>
            <status>Yes</status>
            <field-selected>title</field-selected>
            <parma-link>
              <!-- Relative Absolute -->
              <type>Relative</type>
              <uri><![CDATA[blog-by-cat/[id]/[title]]]></uri>
            </parma-link>
        </sreach>
    </base>
</CategorySet>

 

Name:
CategorySet file Name is used as a name of Category Set

 

Version, Lastupdate:

Version and Lastupdate is used for developer reference.
 
Title:
Title display in User Interface.

 

Admin_tab:

Admin Tab define the menu of admin tab to render. This tab name comes from Interface Builder

 

Parameter:
This tag used to pass additional data to configure InformationSet Interface. Most commonly we use below flags:
 
add     : Access to add new data.

edit     : Access to edit existing rows.

delete   : Access to delete

view     : Access to view entry detail view.

 

Set "Yes" to enable and "No" to disabled.

 

Description:
Enable/Disable description field.

 

Image:
Enable/Disabled Image filed.

 

Haschild:
Enable/Disable Parent Category Selection.

 

Search:

Enable Category to make it search-able by Search Module.