[BUGFIX] Split off functional category collection tests
[Packages/TYPO3.CMS.git] / typo3 / sysext / cms / flexform_media.xml
index 7884849..1bea643 100644 (file)
                                                        </config>
                                                </TCEforms>
                                        </mmType>
+                                       <mmUseHTML5>
+                                               <TCEforms>
+                                                       <label>LLL:EXT:cms/locallang_ttc.xml:media.useHTML5</label>
+                                                       <displayCond>FIELD:mmType:!=:audio</displayCond>
+                                                       <onChange>reload</onChange>
+                                                       <config>
+                                                               <type>check</type>
+                                                               <default>0</default>
+                                                       </config>
+                                               </TCEforms>
+                                       </mmUseHTML5>
                                        <mmWidth>
                                                <TCEforms>
                                                        <label>LLL:EXT:cms/locallang_ttc.xml:media.width</label>
                                        <mmRenderType>
                                                <TCEforms>
                                                        <label>LLL:EXT:cms/locallang_ttc.xml:media.renderType</label>
+                                                       <displayCond>FIELD:mmType:!=:audio</displayCond>
                                                        <config>
                                                                <type>select</type>
                                                                <items>
                                                                        <numIndex index="0">
-                                                                               <numIndex index="0">LLL:EXT:cms/locallang_ttc.xml:media.renderType.preferHtml5OverFlash</numIndex>
+                                                                               <numIndex index="0">LLL:EXT:cms/locallang_ttc.xml:media.renderType.auto</numIndex>
                                                                                <numIndex index="1">auto</numIndex>
                                                                        </numIndex>
                                                                        <numIndex index="1">
-                                                                               <numIndex index="0">LLL:EXT:cms/locallang_ttc.xml:media.renderType.preferFlashOverHtml5</numIndex>
-                                                                               <numIndex index="1">preferFlashOverHtml5</numIndex>
-                                                                       </numIndex>
-                                                                       <numIndex index="2">
                                                                                <numIndex index="0">LLL:EXT:cms/locallang_ttc.xml:media.renderType.qt</numIndex>
                                                                                <numIndex index="1">qt</numIndex>
                                                                        </numIndex>
-                                                                       <numIndex index="3">
+                                                                       <numIndex index="2">
                                                                                <numIndex index="0">LLL:EXT:cms/locallang_ttc.xml:media.renderType.embed</numIndex>
                                                                                <numIndex index="1">embed</numIndex>
                                                                        </numIndex>
                        <ROOT>
                                <TCEforms>
                                        <sheetTitle>LLL:EXT:cms/locallang_ttc.xml:media.tabVideo</sheetTitle>
-                                       <displayCond>FIELD:sGeneral.mmType:=:video</displayCond>
+                                       <displayCond>FIELD:sGeneral.mmType:!=:audio</displayCond>
                                </TCEforms>
                                <type>array</type>
                                <el>
                                                        </config>
                                                </TCEforms>
                                        </mmFile>
+                               </el>
+                       </ROOT>
+               </sVideo>
+               <sVideoAccessible>
+                       <ROOT>
+                               <TCEforms>
+                                       <sheetTitle>LLL:EXT:cms/locallang_ttc.xml:media.tabVideoAccessible</sheetTitle>
+                                       <displayCond>FIELD:sGeneral.mmUseHTML5:=:1</displayCond>
+                               </TCEforms>
+                               <type>array</type>
+                               <el>
                                        <mmSources>
                                                <title>LLL:EXT:cms/locallang_ttc.xml:media.sources</title>
                                                <type>array</type>
                                                                                                                <script>browse_links.php?mode=wizard&amp;act=file|url</script>
                                                                                                                <params type="array">
                                                                                                                        <blindLinkOptions>page,folder,mail,spec</blindLinkOptions>
-                                                                                                                       <allowedExtensions>asf,avi,class,dcr,flv,mov,mpg,mp4,m4a,m4v,ogg,ogv,swf,webm</allowedExtensions>
+                                                                                                                       <allowedExtensions>mov,mpg,mp4,m4a,m4v,ogg,ogv,swf,webm</allowedExtensions>
                                                                                                                </params>
                                                                                                                <JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
                                                                                                        </link>
                                                        </config>
                                                </TCEforms>
                                        </mmCaption>
-
-                               </el>
-                       </ROOT>
-               </sVideo>
-               <sAudio>
-                       <ROOT>
-                               <TCEforms>
-                                       <sheetTitle>LLL:EXT:cms/locallang_ttc.xml:media.tabAudio</sheetTitle>
-                                       <displayCond>FIELD:sGeneral.mmType:=:audio</displayCond>
-                               </TCEforms>
-                               <type>array</type>
-                               <el>
                                        <mmAudioSources>
-                                               <title>LLL:EXT:cms/locallang_ttc.xml:media.audioSources</title>
+                                               <title>LLL:EXT:cms/locallang_ttc.xml:media.audioDescription</title>
                                                <type>array</type>
                                                <section>1</section>
                                                <el>
                                                        <mmAudioSourcesContainer>
                                                                <type>array</type>
-                                                               <title>LLL:EXT:cms/locallang_ttc.xml:media.media.url</title>
+                                                               <title>LLL:EXT:cms/locallang_ttc.xml:media.media.browseUrl</title>
                                                                <el>
                                                                        <mmAudioSource>
                                                                                <TCEforms>
-                                                                                       <label>LLL:EXT:cms/locallang_ttc.xml:media.url</label>
+                                                                                       <label>LLL:EXT:cms/locallang_ttc.xml:media.browseUrl</label>
                                                                                        <config>
                                                                                                <type>input</type>
                                                                                                <size>60</size>
                                                        </mmAudioSourcesContainer>
                                                </el>
                                        </mmAudioSources>
+
+                               </el>
+                       </ROOT>
+               </sVideoAccessible>
+               <sAudio>
+                       <ROOT>
+                               <TCEforms>
+                                       <sheetTitle>LLL:EXT:cms/locallang_ttc.xml:media.tabAudio</sheetTitle>
+                                       <displayCond>FIELD:sGeneral.mmType:=:audio</displayCond>
+                               </TCEforms>
+                               <type>array</type>
+                               <el>
                                        <mmAudioFallback>
                                                <TCEforms>
                                                        <label>LLL:EXT:cms/locallang_ttc.xml:media.audioFallbackUrl</label>
                                                        </config>
                                                </TCEforms>
                                        </mmAudioFallback>
-
+                                       <mmAudioSources>
+                                               <title>LLL:EXT:cms/locallang_ttc.xml:media.audioSources</title>
+                                               <type>array</type>
+                                               <section>1</section>
+                                               <el>
+                                                       <mmAudioSourcesContainer>
+                                                               <type>array</type>
+                                                               <title>LLL:EXT:cms/locallang_ttc.xml:media.media.url</title>
+                                                               <el>
+                                                                       <mmAudioSource>
+                                                                               <TCEforms>
+                                                                                       <label>LLL:EXT:cms/locallang_ttc.xml:media.url</label>
+                                                                                       <config>
+                                                                                               <type>input</type>
+                                                                                               <size>60</size>
+                                                                                               <eval>trim,required</eval>
+                                                                                               <default></default>
+                                                                                               <wizards type="array">
+                                                                                                       <_PADDING>2</_PADDING>
+                                                                                                       <link type="array">
+                                                                                                               <type>popup</type>
+                                                                                                               <title>LLL:EXT:cms/locallang_ttc.xml:media.browseUrlTitle</title>
+                                                                                                               <icon>link_popup.gif</icon>
+                                                                                                               <script>browse_links.php?mode=wizard&amp;act=file|url</script>
+                                                                                                               <params type="array">
+                                                                                                                       <blindLinkOptions>page,folder,mail,spec</blindLinkOptions>
+                                                                                                                       <allowedExtensions>au,asf,mp3,m4a,oga,ogg, wav,webm,wmv</allowedExtensions>
+                                                                                                               </params>
+                                                                                                               <JSopenParams>height=300,width=500,status=0,menubar=0,scrollbars=1</JSopenParams>
+                                                                                                       </link>
+                                                                                               </wizards>
+                                                                                       </config>
+                                                                               </TCEforms>
+                                                                       </mmAudioSource>
+                                                               </el>
+                                                       </mmAudioSourcesContainer>
+                                               </el>
+                                       </mmAudioSources>
                                </el>
                        </ROOT>
                </sAudio>