123 lines
3.0 KiB
XML
123 lines
3.0 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<construct>
|
|
<!-- Module name -->
|
|
<module>product_cat</module>
|
|
<!-- Module supporting database table -->
|
|
<table>product_cat</table>
|
|
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
|
|
<dependancy>product</dependancy>
|
|
<!-- DB cache in seconds -->
|
|
<cache>0</cache>
|
|
<!-- Default order_by field for SQL queries -->
|
|
<order_by>position</order_by>
|
|
<!-- Default SQL limit for SQL queries -->
|
|
<limit>25</limit>
|
|
<!-- Schema version (used to determine if the schema has change during upgrades) -->
|
|
<version>0</version>
|
|
|
|
<!-- Database indexes -->
|
|
<index>
|
|
<status>status</status>
|
|
<position>position</position>
|
|
<name>name</name>
|
|
</index>
|
|
|
|
<!-- Database fields -->
|
|
<field>
|
|
<!-- Record ID -->
|
|
<id>
|
|
<index>1</index>
|
|
<type>I4</type>
|
|
<unique>1</unique>
|
|
</id>
|
|
<!-- Site ID -->
|
|
<site_id>
|
|
<index>1</index>
|
|
<type>I4</type>
|
|
</site_id>
|
|
<parent_id>
|
|
<type>I4</type>
|
|
<display>Parent</display>
|
|
</parent_id>
|
|
<group_avail>
|
|
<type>X2</type>
|
|
<convert>array</convert>
|
|
<validate>any</validate>
|
|
<display>Available to Groups</display>
|
|
</group_avail>
|
|
<name>
|
|
<type>C(32)</type>
|
|
<min_len>2</min_len>
|
|
<max_len>32</max_len>
|
|
<validate>any</validate>
|
|
<display>Category</display>
|
|
</name>
|
|
<notes>
|
|
<type>C(255)</type>
|
|
<display>Notes</display>
|
|
</notes>
|
|
<status>
|
|
<type>L</type>
|
|
<display>Active</display>
|
|
</status>
|
|
<template>
|
|
<type>C(128)</type>
|
|
<display>Display Template</display>
|
|
</template>
|
|
<thumbnail>
|
|
<type>C(128)</type>
|
|
<display>Image Thumbnail</display>
|
|
</thumbnail>
|
|
<image>
|
|
<type>C(128)</type>
|
|
<display>Image</display>
|
|
</image>
|
|
<position>
|
|
<type>I4</type>
|
|
<display>Position</display>
|
|
</position>
|
|
<max>
|
|
<type>I4</type>
|
|
<validate>numeric</validate>
|
|
<display>Max Entries to Display</display>
|
|
</max>
|
|
</field>
|
|
|
|
<!-- Methods for this class, and the fields they have access to, if applicable -->
|
|
<method>
|
|
<add>id,site_id,name,notes,status,template,thumbnail,image,position,max,group_avail,parent_id</add>
|
|
<update>id,site_id,name,notes,status,template,thumbnail,image,position,max,group_avail,parent_id</update>
|
|
<delete>id,site_id,name,notes,status,template,thumbnail,image,position,max,group_avail,parent_id</delete>
|
|
<view>id,site_id,name,notes,status,template,thumbnail,image,position,max,group_avail,parent_id</view>
|
|
<search>id,site_id,name,notes,status,template,thumbnail,image,position,max,group_avail,parent_id</search>
|
|
</method>
|
|
|
|
<!-- Method triggers -->
|
|
<trigger></trigger>
|
|
|
|
<!-- Template page display titles -->
|
|
<title>
|
|
<add>Add Product Category</add>
|
|
<view>Product Categories</view>
|
|
</title>
|
|
|
|
<!-- Template helpers -->
|
|
<tpl>
|
|
<search_show>
|
|
<checkbox>
|
|
<field>id</field>
|
|
<type>checkbox</type>
|
|
<width>25px</width>
|
|
</checkbox>
|
|
<name>
|
|
<field>name</field>
|
|
</name>
|
|
<status>
|
|
<field>status</field>
|
|
<type>bool</type>
|
|
<width>20px</width>
|
|
</status>
|
|
</search_show>
|
|
</tpl>
|
|
</construct>
|