124 lines
3.2 KiB
XML
124 lines
3.2 KiB
XML
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
|
<construct>
|
|
<!-- Module name -->
|
|
<module>static_page</module>
|
|
<!-- Module supporting database table -->
|
|
<table>static_page</table>
|
|
<!-- Module dependancy(s) (module wont install if these modules are not yet installed) -->
|
|
<dependancy></dependancy>
|
|
<!-- DB cache in seconds -->
|
|
<cache>0</cache>
|
|
<!-- Default order_by field for SQL queries -->
|
|
<order_by>sort_order,date_orig,name</order_by>
|
|
<!-- Default SQL limit for SQL queries -->
|
|
<limit>35</limit>
|
|
<!-- Schema version (used to determine if the schema has change during upgrades) -->
|
|
<version>0</version>
|
|
|
|
<!-- Database indexes -->
|
|
<index>
|
|
<cat>static_page_category_id</cat>
|
|
<start>date_start</start>
|
|
<expire>date_expire</expire>
|
|
<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>
|
|
<!-- Date record created -->
|
|
<date_orig>
|
|
<convert>date-now</convert>
|
|
<display>Date Created</display>
|
|
<type>I8</type>
|
|
</date_orig>
|
|
<!-- Date record updated -->
|
|
<date_last>
|
|
<convert>date-now</convert>
|
|
<display>Date Updated</display>
|
|
<type>I8</type>
|
|
</date_last>
|
|
<static_page_category_id>
|
|
<type>I4</type>
|
|
<asso_table>static_page_category</asso_table>
|
|
<asso_field>name</asso_field>
|
|
<index>1</index>
|
|
</static_page_category_id>
|
|
<date_start>
|
|
<type>I8</type>
|
|
<convert>date</convert>
|
|
</date_start>
|
|
<date_expire>
|
|
<type>I8</type>
|
|
<convert>date</convert>
|
|
</date_expire>
|
|
<sort_order>
|
|
<type>I4</type>
|
|
</sort_order>
|
|
<status>
|
|
<type>L</type>
|
|
</status>
|
|
<name>
|
|
<type>C(128)</type>
|
|
<min_len>1</min_len>
|
|
<max_len>128</max_len>
|
|
<validate>any</validate>
|
|
<unique>1</unique>
|
|
</name>
|
|
<description>
|
|
<type>X2</type>
|
|
</description>
|
|
</field>
|
|
|
|
<!-- Methods for this class, and the fields they have access to, if applicable -->
|
|
<method>
|
|
<add>static_page_category_id,sort_order,date_start,date_expire,status,name,description</add>
|
|
<update>id,site_id,static_page_category_id,sort_order,date_start,date_orig,date_orig,date_last,date_expire,status,name,description</update>
|
|
<delete>id,site_id,static_page_category_id,sort_order,date_start,date_orig,date_orig,date_last,date_expire,status,name,description</delete>
|
|
<view>id,site_id,static_page_category_id,sort_order,date_start,date_orig,date_orig,date_last,date_expire,status,name,description</view>
|
|
<search>id,site_id,static_page_category_id,sort_order,date_start,date_orig,date_orig,date_last,date_expire,status,name,description</search>
|
|
</method>
|
|
|
|
<!-- Method triggers -->
|
|
<trigger></trigger>
|
|
|
|
<!-- Template page display titles -->
|
|
<title>
|
|
<add>Add Static Page</add>
|
|
<search>Search</search>
|
|
<view>Static Page</view>
|
|
</title>
|
|
|
|
<!-- Template helpers -->
|
|
<tpl>
|
|
<search_show>
|
|
<checkbox>
|
|
<field>id</field>
|
|
<type>checkbox</type>
|
|
<width>25px</width>
|
|
</checkbox>
|
|
<name>
|
|
<field>name</field>
|
|
</name>
|
|
<static_page_category_id>
|
|
<field>static_page_category_id</field>
|
|
</static_page_category_id>
|
|
<icon>
|
|
<field>status</field>
|
|
<type>bool_icon</type>
|
|
<width>20px</width>
|
|
</icon>
|
|
</search_show>
|
|
</tpl>
|
|
</construct>
|