<?xml version="1.0" encoding="utf-8"?>
<T3DataStructure>
    <sheets>
        <sDEF>
            <ROOT>
                <sheetTitle>
                    General
                </sheetTitle>
                <type>array</type>
                <el>
                    <settings.types>
                        <label>
                            LLL:EXT:wabs_attractions/Resources/Private/Language/locallang_db.xlf:tx_wabsattractions_domain_model_attraction.type
                        </label>
                        <config>
                            <type>select</type>
                            <renderType>selectMultipleSideBySide</renderType>
                            <foreign_table>tx_wabsattractions_domain_model_type</foreign_table>
                            <foreign_table_where>
                                AND find_in_set({#tx_wabsattractions_domain_model_type}.{#pid}, ###REC_FIELD_pages###)
                                AND {#tx_wabsattractions_domain_model_type}.{#sys_language_uid} IN (-1,0)
                            </foreign_table_where>
                        </config>
                    </settings.types>

                    <settings.detailPid>
                        <label>
                            LLL:EXT:wabs_attractions/Resources/Private/Language/locallang_flexform.xlf:detailPid
                        </label>
                        <config>
                            <type>group</type>
                            <allowed>pages</allowed>
                            <maxitems>1</maxitems>
                            <minitems>0</minitems>
                            <size>1</size>
                            <suggestOptions>
                                <default>
                                    <additionalSearchFields>nav_title, alias, url</additionalSearchFields>
                                    <addWhere>AND pages.doktype = 1</addWhere>
                                </default>
                            </suggestOptions>
                        </config>
                    </settings.detailPid>

                    <settings.layout>
                        <label>
                            LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.layout
                        </label>
                        <config>
                            <type>select</type>
                            <renderType>selectSingle</renderType>
                            <items type="array">
                                <numIndex index="0" type="array">
                                    <numIndex index="0">Layout1</numIndex>
                                    <numIndex index="1">Layout1</numIndex>
                                </numIndex>
                                <numIndex index="1" type="array">
                                    <numIndex index="0">Layout2</numIndex>
                                    <numIndex index="1">Layout2</numIndex>
                                </numIndex>
                                <numIndex index="2" type="array">
                                    <numIndex index="0">Layout3</numIndex>
                                    <numIndex index="1">Layout3</numIndex>
                                </numIndex>
                                <numIndex index="3" type="array">
                                    <numIndex index="0">Layout4</numIndex>
                                    <numIndex index="1">Layout4</numIndex>
                                </numIndex>
                                <numIndex index="4" type="array">
                                    <numIndex index="0">Layout5</numIndex>
                                    <numIndex index="1">Layout5</numIndex>
                                </numIndex>
                                <numIndex index="6" type="array">
                                    <numIndex index="0">Layout6</numIndex>
                                    <numIndex index="1">Layout6</numIndex>
                                </numIndex>
                                 <numIndex index="7" type="array">
                                    <numIndex index="0">Layout7</numIndex>
                                    <numIndex index="1">Layout7</numIndex>
                                </numIndex>
                                <numIndex index="8" type="array">
                                    <numIndex index="0">Layout8</numIndex>
                                    <numIndex index="1">Layout8</numIndex>
                                </numIndex>
                            </items>
                        </config>
                    </settings.layout>
                </el>
            </ROOT>
        </sDEF>

        <!-- Filter Sheet -->
        <filter>
            <ROOT>
                <sheetTitle>
                    LLL:EXT:core/Resources/Private/Language/locallang_misc.xlf:pageTree_filter
                </sheetTitle>
                <type>array</type>
                <el>
                    <settings.filter>
                        <type>array</type>
                        <section>1</section>
                        <el>
                            <item>
                                <title>LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:item</title>
                                <type>array</type>
                                <el>
                                    <featureGroup>
                                        <label>LLL:EXT:wabs_attractions/Resources/Private/Language/locallang_db.xlf:tx_wabsattractions_domain_model_feature.feature_group</label>
                                        <config>
                                            <type>select</type>
                                            <renderType>selectMultipleSideBySide</renderType>
                                            <foreign_table>tx_wabsattractions_domain_model_featuregroup</foreign_table>
                                            <foreign_table_where>
                                                AND find_in_set({#tx_wabsattractions_domain_model_featuregroup}.{#pid}, ###REC_FIELD_pages###)
                                                AND {#tx_wabsattractions_domain_model_featuregroup}.{#sys_language_uid} IN (-1,0)
                                            </foreign_table_where>
                                            <maxitems>1</maxitems>
                                        </config>
                                    </featureGroup>
                                    <value>
                                        <label>
                                            LLL:EXT:wabs_attractions/Resources/Private/Language/locallang_db.xlf:tx_wabsattractions_domain_model_feature.value
                                        </label>
                                        <config>
                                            <type>select</type>
                                            <renderType>selectMultipleSideBySide</renderType>
                                            <itemsProcFunc>
                                                Wabsolute\WabsAttractions\Hooks\ItemsProcFunc->getValuesByFeatureGroup
                                            </itemsProcFunc>
                                            <maxitems>1</maxitems>
                                        </config>
                                    </value>
                                </el>
                            </item>
                        </el>
                    </settings.filter>
                </el>
            </ROOT>
        </filter>

        <!-- Category Filter -->
        <categoryfilter>
            <ROOT>
                <sheetTitle>Category Title</sheetTitle>
                <type>array</type>
                <el>
                    <settings.categoryLabel>
                        <label>
                            Label
                        </label>
                        <config>
                            <type>input</type>
                            <size>30</size>
                            <eval>trim</eval>
                        </config>
                    </settings.categoryLabel>
                    <settings.categoryFilter>
                        <type>array</type>
                        <section>1</section>
                        <el>
                            <item>
                                <title>
                                    LLL:EXT:core/Resources/Private/Language/locallang_common.xlf:item
                                </title>
                                <type>array</type>
                                <el>
                                    <category>
                                        <label>
                                            LLL:EXT:wabs_attractions/Resources/Private/Language/locallang_db.xlf:tx_wabsattractions_domain_model_feature.category
                                        </label>
                                        <config>
                                            <type>select</type>
                                            <renderType>selectMultipleSideBySide</renderType>
                                            <foreign_table>tx_wabsattractions_domain_model_category</foreign_table>
                                            <foreign_table_where>
                                                AND find_in_set({#tx_wabsattractions_domain_model_category}.{#pid}, ###REC_FIELD_pages###)
                                                AND {#tx_wabsattractions_domain_model_category}.{#sys_language_uid} IN (-1,0)
                                            </foreign_table_where>
                                            <maxitems>1</maxitems>
                                        </config>
                                    </category>
                                </el>
                            </item>
                        </el>
                    </settings.categoryFilter>
                </el>
            </ROOT>
        </categoryfilter>
    </sheets>
</T3DataStructure>
