<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
    <meta>
        <langDisable>1</langDisable>
    </meta>
    <sheets>
        <options>
            <ROOT>
                <sheetTitle>Galerie photos</sheetTitle>
                <type>array</type>
                <el>

                    <title>
                        <label>Titre du module</label>
                        <config>
                            <type>input</type>
                            <size>50</size>
                        </config>
                    </title>

                    <header>
                        <label>Niveau du titre</label>
                        <config>
                            <type>select</type>
                            <renderType>selectSingle</renderType>
                            <items>
                                <numIndex index="0">
                                    <label>Niveau 2</label>
                                    <value>h2</value>
                                </numIndex>
                                <numIndex index="1">
                                    <label>Niveau 3</label>
                                    <value>h3</value>
                                </numIndex>
                                <numIndex index="2">
                                    <label>Niveau 4</label>
                                    <value>h4</value>
                                </numIndex>
                                <numIndex index="3">
                                    <label>Niveau 5</label>
                                    <value>h5</value>
                                </numIndex>
                                <numIndex index="4">
                                    <label>Niveau 6</label>
                                    <value>h6</value>
                                </numIndex>
                            </items>
                        </config>
                    </header>

                    <type>
                        <label>Type de galerie</label>
                        <onChange>reload</onChange>
                        <config>
                            <type>select</type>
                            <renderType>selectSingle</renderType>
                            <items>
                                <numIndex index="0">
                                    <label>Sélectionnez un type</label>
                                    <value>0</value>
                                </numIndex>
                                <numIndex index="1">
                                    <label>Sélection manuelle</label>
                                    <value>1</value>
                                </numIndex>
                                <numIndex index="2">
                                    <label>Toutes les photos d'un dossier</label>
                                    <value>2</value>
                                </numIndex>
                                <numIndex index="3">
                                    <label>Importer une galerie provenant d'un album photos</label>
                                    <value>3</value>
                                </numIndex>
                            </items>
                        </config>
                    </type>


                    <images>
                        <label>Photos de la galerie</label>
                        <displayCond>FIELD:type:=:1</displayCond>
                        <config>
                            <type>file</type>
                            <maxitems>99</maxitems>
                            <allowed>gif,jpg,jpeg,png,eps,webp</allowed>
                            <appearance>
                                <createNewRelationLinkTitle>Ajouter des images</createNewRelationLinkTitle>
                                <showPossibleLocalizationRecords>1</showPossibleLocalizationRecords>
                                <showRemovedLocalizationRecords>1</showRemovedLocalizationRecords>
                                <showAllLocalizationLink>1</showAllLocalizationLink>
                                <showSynchronizationLink>1</showSynchronizationLink>
                            </appearance>
                        </config>
                    </images>


                    <info>
                        <label>Instructions</label>
                        <displayCond>FIELD:type:=:2</displayCond>
                        <config>
                            <type>user</type>
                            <renderType>stratisInfoText</renderType>
                            <default>Pour sélectionner votre dossier :
1. Cliquez sur le bouton en forme de chaîne ci-dessous pour ouvrir le gestionnaire de médias dans une popup ;
2. Ensuite, sélectionnez le dossier parent à celui que vous souhaitez dans la colonne de gauche ;
3. Enfin, sélectionnez votre dossier dans la colonne de droite.</default>
                        </config>
                    </info>

                    <folder>
                        <label>Choix du dossier</label>
                        <displayCond>FIELD:type:=:2</displayCond>
                        <config>
                            <type>link</type>
                            <allowedTypes>
                                <numIndex index="0">folder</numIndex>
                            </allowedTypes>
                        </config>
                    </folder>


                    <enimages>
                        <label>Sélectionner un album photos (News)</label>
                        <displayCond>FIELD:type:=:3</displayCond>
                        <config>
                            <type>group</type>
                            <allowed>tx_news_domain_model_news</allowed>
                            <maxitems>1</maxitems>
                            <minitems>1</minitems>
                            <size>1</size>
                            <suggestOptions>
                                <default>
                                    <searchWholePhrase>0</searchWholePhrase>
                                </default>
                            </suggestOptions>
                        </config>
                    </enimages>

                </el>
            </ROOT>
        </options>
    </sheets>
</T3DataStructure>
