[BUGFIX] Add autocomplete for t3editor FILES 94/35394/2
authorStefan Froemken <froemken@gmail.com>
Tue, 29 Oct 2013 15:50:18 +0000 (16:50 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Sat, 13 Dec 2014 17:55:37 +0000 (18:55 +0100)
Add autocomplete values for t3editor
because there was no implementation for new cObj FILES

Resolves: #53129
Releases: master, 6.2
Change-Id: Id4c5d7e51850546cb07ae289c96107834b8e7921
Reviewed-on: http://review.typo3.org/35394
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/t3editor/res/jslib/parse_typoscript/tokenizetyposcript.js
typo3/sysext/t3editor/res/tsref/tsref.xml

index 91ba2d1..9145b7a 100644 (file)
@@ -39,6 +39,7 @@ var typoscriptWords = {
        'EDITPANEL': 'keyword',
        'EFFECT': 'keyword',
        'FILE': 'keyword',
+       'FILES': 'keyword',
        'FORM': 'keyword',
        'FRAME': 'keyword',
        'FRAMESET': 'keyword',
@@ -242,6 +243,7 @@ var typoscriptWords = {
        'cMargins': 'reserved',
        'cObjNum': 'reserved',
        'collapse': 'reserved',
+       'collections': 'reserved',
        'color': 'reserved',
        'color1': 'reserved',
        'color2': 'reserved',
@@ -297,6 +299,7 @@ var typoscriptWords = {
        'depth': 'reserved',
        'DESC': 'reserved',
        'dimensions': 'reserved',
+       'direction': 'reserved',
        'directionLeft': 'reserved',
        'directionUp': 'reserved',
        'disableAdvanced': 'reserved',
@@ -376,6 +379,7 @@ var typoscriptWords = {
        'face': 'reserved',
        'fe_adminLib': 'reserved',
        'field': 'reserved',
+       'fieldName': 'reserved',
        'fieldOrder': 'reserved',
        'fieldRequired': 'reserved',
        'fields': 'reserved',
@@ -388,11 +392,13 @@ var typoscriptWords = {
        'file5': 'reserved',
        'filelink': 'reserved',
        'filelist': 'reserved',
+       'files': 'reserved',
        'firstLabel': 'reserved',
        'firstLabelGeneral': 'reserved',
        'fixAttrib': 'reserved',
        'flip': 'reserved',
        'flop': 'reserved',
+       'folders': 'reserved',
        'foldSpeed': 'reserved',
        'foldTimer': 'reserved',
        'fontColor': 'reserved',
@@ -704,6 +710,7 @@ var typoscriptWords = {
        'redirect': 'reserved',
        'redirectToURL': 'reserved',
        'reduceColors': 'reserved',
+       'references': 'reserved',
        'register': 'reserved',
        'relativeToParentLayer': 'reserved',
        'relativeToTriggerItem': 'reserved',
@@ -1567,6 +1574,7 @@ var typoscriptWords = {
        'cMargins': 'reserved',
        'cObjNum': 'reserved',
        'collapse': 'reserved',
+       'collections': 'reserved',
        'color': 'reserved',
        'color1': 'reserved',
        'color2': 'reserved',
@@ -1622,6 +1630,7 @@ var typoscriptWords = {
        'depth': 'reserved',
        'DESC': 'reserved',
        'dimensions': 'reserved',
+       'direction': 'reserved',
        'directionLeft': 'reserved',
        'directionUp': 'reserved',
        'disableAdvanced': 'reserved',
@@ -1713,11 +1722,13 @@ var typoscriptWords = {
        'file5': 'reserved',
        'filelink': 'reserved',
        'filelist': 'reserved',
+       'files': 'reserved',
        'firstLabel': 'reserved',
        'firstLabelGeneral': 'reserved',
        'fixAttrib': 'reserved',
        'flip': 'reserved',
        'flop': 'reserved',
+       'folders': 'reserved',
        'foldSpeed': 'reserved',
        'foldTimer': 'reserved',
        'fontColor': 'reserved',
@@ -2029,6 +2040,7 @@ var typoscriptWords = {
        'redirect': 'reserved',
        'redirectToURL': 'reserved',
        'reduceColors': 'reserved',
+       'references': 'reserved',
        'register': 'reserved',
        'relativeToParentLayer': 'reserved',
        'relativeToTriggerItem': 'reserved',
index 50065d2..6e1c338 100644 (file)
@@ -1375,7 +1375,7 @@ color denotes the color of the border.]]></description>
 
 If no alttext is specified, it will use an empty alttext]]></description>
                        <default><![CDATA[
-]]></default>
+                               ]]></default>
                </property>
                <property name="emptyTitleHandling" type="string">
                        <description><![CDATA[Value can be "keepEmpty" to preserve an empty title attribute, or "useAlt" to use the alt attribute instead.
@@ -1388,32 +1388,84 @@ If no alttext is specified, it will use an empty alttext]]></description>
                        If the resource is jpg,gif,jpeg,png the image is inserted as an image-tag. Al other formats is read and inserted into the HTML-code.
 The maximum filesize of documents to be read is set to 1024 kb internally!]]></description>
                        <default><![CDATA[
-]]></default>
+                               ]]></default>
                </property>
                <property name="linkWrap" type="stdWrap">
                        <description><![CDATA[wrap/stdWrap
                        (before ".wrap")]]></description>
                        <default><![CDATA[
-]]></default>
+                               ]]></default>
                </property>
                <property name="longdescURL" type="stdWrap">
                        <description><![CDATA[For <img> output only!
 
 "longdesc" attribute (URL pointing to document with extensive details about image).]]></description>
                        <default><![CDATA[
-]]></default>
+                               ]]></default>
                </property>
                <property name="stdWrap" type="stdWrap">
                        <description><![CDATA[
-]]></description>
+                               ]]></description>
                        <default><![CDATA[
-]]></default>
+                               ]]></default>
                </property>
                <property name="wrap" type="stdWrap">
                        <description><![CDATA[wrap/stdWrap
 ]]></description>
                        <default><![CDATA[
-]]></default>
+                               ]]></default>
+               </property>
+       </type>
+       <type id="FILES">
+               <property name="references" type="stdWrap">
+                       <description><![CDATA[string/stdWrap or array
+                       Provides a way to load files from a file field (of type IRRE with sys_file_reference as child table).
+                       You can either provide a UID or a comma-separated list of UIDs from the database table sys_file_reference
+                       or you have to specify a table, uid and field name in the according sub-properties of "references".
+                       See further documentation of these sub-properties in the table below.]]></description>
+                       <default><![CDATA[]]></default>
+               </property>
+               <property name="files" type="stdWrap">
+                       <description><![CDATA[string/stdWrap
+                       Comma-separated list of sys_file UIDs, which are loaded into the FILES object.]]></description>
+                       <default><![CDATA[]]></default>
+               </property>
+               <property name="collections" type="stdWrap">
+                       <description><![CDATA[string/stdWrap
+                       Comma-separated list of sys_file_collection UIDs, which are loaded into the FILES object.]]></description>
+                       <default><![CDATA[]]></default>
+               </property>
+               <property name="folders" type="stdWrap">
+                       <description><![CDATA[string/stdWrap
+                       Comma-separated list of combined folder identifiers which are loaded into the FILES object.
+                       A combined folder identifier looks like this: [storageUid]:[folderIdentifier].
+                       The first part is the UID of the storage and the second part the identifier of the folder.
+                       The identifier of the folder is often equivalent to the relative path of the folder.]]></description>
+                       <default><![CDATA[]]></default>
+               </property>
+               <property name="sorting" type="stdWrap">
+                       <description><![CDATA[string/stdWrap
+                       You can sort in revers order with: sorting.direction = DESC]]></description>
+                       <default><![CDATA[]]></default>
+               </property>
+               <property name="begin" type="integer">
+                       <description><![CDATA[integer]]></description>
+                       <default><![CDATA[]]></default>
+               </property>
+               <property name="maxItems" type="integer">
+                       <description><![CDATA[integer]]></description>
+                       <default><![CDATA[]]></default>
+               </property>
+               <property name="renderObj" type="cObj">
+                       <description><![CDATA[cObject + optionSplit
+                       The cObject used for rendering the files. It is executed once for every file.
+                       Note that during each execution you can find information about the current file using
+                       the getText property "file" with the "current" keyword.]]></description>
+                       <default><![CDATA[]]></default>
+               </property>
+               <property name="stdWrap" type="stdWrap">
+                       <description><![CDATA[stdWrap]]></description>
+                       <default><![CDATA[]]></default>
                </property>
        </type>
        <type id="FORM_dataArray">