<?xml version="1.0"?>

<bxcms xmlns="http://bitflux.org/propertyconfig">


    <!-- 
        categories group different properties with different namespaces
        into logical categories. a property can be in more than one category.
    -->
    <categories default="general">
        <category name="general">
            <property id="display-name"/>
            <property id="display-name-multilang"/>
            <property id="title-multilang"/>
            <property id="title"/>
            <property id="description-multilang"/>
            <property id="display-order"/>
            <property id="redirect"/>
            <property id="relink"/>
            <property id="dc_subject"/>
            <property id="dc_description"/>
            <property id="kMDItem_AudioBitRate"/>
            <property id="dc_creator"/>
            <property id="dc_date"/>
        </category>
          
        <category name="permission" >
            <property id="read"/>
            <property id="read_navi"/>
        </category>

        <category name="system" >
            <property id="mimetype"/>
            <property id="output-mimetype"/>
            <property id="parent-uri"/>
          
        </category>
        
        

        <!--<category name="other" >
        </category>-->

    </categories>

    <!--
        propertysets define which properties a resource can have.
        the default set is used, when a resource with an undefined set is
        requested. classnames are currently used as the key.
    -->
    <propertysets default="default">
        
        <!-- default propertyset -->
        <propertyset name="default">
            <property id="mimetype"/>
            <property id="output-mimetype"/>
            <property id="parent-uri"/>
        </propertyset>
        
        <!-- propertyset for text resources -->
        <propertyset name="text">
            <resource name="bx_resources_text_html"/>
            <resource name="text/html"/>
            <property id="display-name"/>
            <property id="display-order"/>
            <property id="mimetype"/>
            <property id="output-mimetype"/>
            <property id="parent-uri"/>
            <property id="title"/>
            <property id="dc_subject"/>
            

        </propertyset>
        
            <!-- propertyset for file resources -->
        <propertyset name="file">
            <resource name="bx_resources_file"/>
            <resource name="image"/>
            <resource name="video"/>
            <resource name="audio"/>
            <resource name="application"/>
            <property id="description-multilang"/>
            <property id="title-multilang"/>
            <property id="mimetype"/>

        </propertyset>
        
        
        <!-- propertyset for collections -->
        <propertyset name="collection">
            <resource name="bx_collection"/>
            <resource name="httpd/unix-directory"/>
            <property id="mimetype"/>
            <property id="output-mimetype"/>
            <property id="parent-uri"/>

            <property id="display-order"/>
            <property id="redirect"/>
            <property id="parent-uri"/>
            <property id="relink"/>
            <property id="display-name-multilang"/>
            <property id="dc_subject"/>
            <property id="dc_description"/>
            
            <!--
              Uncomment this, if you want to use the simple-perm properties
              
            <property id="read"/>
            <property id="read_navi"/>
           !-->
        </propertyset>
        
    </propertysets>

    <!--
        these are global definitions for properties like name, namespace etc.
        all ids used above refer to these definitions.
    -->
    <properties>
    
       <property id="dc_subject" name="subject" niceName="keywords" ns="http://purl.org/dc/elements/1.1/" deleteOnEmpty="true">
            <metadata type="text_tags"/>
            <validate type="nonempty"/>
        </property>
        
         <property id="dc_description" name="description" niceName="description" ns="http://purl.org/dc/elements/1.1/" deleteOnEmpty="true">
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>
       
       <property id="dc_creator" name="creator" niceName="dc:creator" ns="http://purl.org/dc/elements/1.1/" deleteOnEmpty="true">
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>
        
        <property id="dc_date" name="date" niceName="dc:date" ns="dc">
            <metadata type="text_datetimefield"/>
            <validate type="nonempty"/>
        </property> 
        
       
       <property id="mimetype" name="mimetype" ns="bx:">
            <metadata type="text_readonly"/>
            <validate type="nonempty"/>
        </property>

        <property id="output-mimetype" name="output-mimetype" ns="bx:">
            <metadata type="text_readonly"/>
            <validate type="nonempty"/>
        </property>

        <property id="display-order" name="display-order" ns="bx:">
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>

        <property id="redirect" name="redirect" ns="bx:" deleteOnEmpty="true">
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>

        <property id="parent-uri" name="parent-uri" ns="bx:">
            <metadata type="text_readonly"/>
            <validate type="nonempty"/>
        </property>

        <property id="relink" name="relink" ns="bx:" deleteOnEmpty="true">
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>
        
        <property id="display-name-multilang" name="display-name" ns="bx:" multilang="true">
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>
        
        <property id="display-name" name="display-name" ns="bx:" >
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>
        
        <property id="description-multilang" name="description" ns="bx:" multilang="true">
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>
        
         <property id="title-multilang" name="title" ns="bx:" multilang="true">
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>
        
         <property id="title" name="title" ns="bx:">
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>

        <property id="read" name="read" ns="bx:">
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>
          <property id="read_navi" name="read_navi" ns="bx:">
            <metadata type="text_textfield"/>
            <validate type="nonempty"/>
        </property>
        
    </properties>
    
</bxcms>
