[TASK] Add CSH button to CreateFolder module 47/51047/4
authorMichael Oehlhof <typo3@oehlhof.de>
Mon, 26 Dec 2016 23:15:19 +0000 (00:15 +0100)
committerBenni Mack <benni@typo3.org>
Fri, 30 Dec 2016 22:36:47 +0000 (23:36 +0100)
Resolves: #70596
Releases: master
Change-Id: I66187bf8de87cfd77b5be0e889d27c86df641dbc
Reviewed-on: https://review.typo3.org/51047
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Gianluigi Martino <gmartino27@gmail.com>
Tested-by: Gianluigi Martino <gmartino27@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Classes/Controller/File/CreateFolderController.php
typo3/sysext/lang/Resources/Private/Language/locallang_csh_corebe.xlf

index 1293ad1..17d7682 100644 (file)
@@ -221,6 +221,12 @@ class CreateFolderController extends AbstractModule
         }
 
         $buttonBar = $this->moduleTemplate->getDocHeaderComponent()->getButtonBar();
+        // CSH button
+        $helpButton = $buttonBar->makeHelpButton()
+            ->setFieldName('file_new')
+            ->setModuleName('xMOD_csh_corebe');
+        $buttonBar->addButton($helpButton);
+
         // Back
         if ($this->returnUrl) {
             $backButton = $buttonBar->makeLinkButton()
index 79edc84..dea9e14 100644 (file)
@@ -695,6 +695,12 @@ xMOD_csh_corebe:filelist_clipboard</source>
                        <trans-unit id="file_edit.image_descr">
                                <source>The editing form for a file is this simple textarea field. It's nothing fancy and experienced coders will miss such as TAB-functionality, but it can edit a stylesheet if badly needed...</source>
                        </trans-unit>
+                       <trans-unit id="file_new.alttitle">
+                               <source>Creating a new file or folder</source>
+                       </trans-unit>
+                       <trans-unit id="file_new.description">
+                               <source>Create new files and folder inside the folder you have selected.</source>
+                       </trans-unit>
                        <trans-unit id="file_newfolder.alttitle">
                                <source>Creating a new folder</source>
                        </trans-unit>