Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from Leuchtfeuer/feature/v12
Feature/v12
- Loading branch information
Showing
26 changed files
with
234 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
custom: ["https://www.Leuchtfeuer.com"] | ||
github: flossels |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
use TYPO3\CMS\Core\Imaging\IconProvider\SvgIconProvider; | ||
|
||
return [ | ||
'bm-image-gallery' => [ | ||
'provider' => SvgIconProvider::class, | ||
'source' => 'EXT:bm_image_gallery/Resources/Public/Icons/Extension.svg' | ||
], | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,59 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
defined('TYPO3_MODE') || die('Access denied.'); | ||
|
||
$temporaryColumns = [ | ||
'bm_image_gallery_path_segment' => [ | ||
'label' => 'LLL:EXT:bm_image_gallery/Resources/Private/Language/locallang_be.xlf:bm_image_gallery_path_segment', | ||
'config' => [ | ||
'type' => 'slug', | ||
'generatorOptions' => [ | ||
'fields' => ['title'], | ||
'prefixParentPageSlug' => false, | ||
'replacements' => [ | ||
'/' => '-', | ||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility; | ||
|
||
defined('TYPO3') || die('Access denied.'); | ||
|
||
call_user_func( | ||
function ($extensionKey) { | ||
$temporaryColumns = [ | ||
'bm_image_gallery_path_segment' => [ | ||
'label' => 'LLL:EXT:bm_image_gallery/Resources/Private/Language/locallang_be.xlf:bm_image_gallery_path_segment', | ||
'config' => [ | ||
'type' => 'slug', | ||
'generatorOptions' => [ | ||
'fields' => ['title'], | ||
'prefixParentPageSlug' => false, | ||
'replacements' => [ | ||
'/' => '-', | ||
], | ||
], | ||
'fallbackCharacter' => '-', | ||
'prependSlash' => false, | ||
'eval' => 'uniqueInPid', | ||
], | ||
], | ||
'bm_image_gallery_location' => [ | ||
'label' => 'LLL:EXT:bm_image_gallery/Resources/Private/Language/locallang_be.xlf:bm_image_gallery_location', | ||
'config' => [ | ||
'type' => 'input', | ||
'size' => 30, | ||
'eval' => 'trim', | ||
], | ||
], | ||
'bm_image_gallery_date' => [ | ||
'label' => 'LLL:EXT:bm_image_gallery/Resources/Private/Language/locallang_be.xlf:bm_image_gallery_date', | ||
'config' => [ | ||
'default' => 0, | ||
'type' => 'datetime', | ||
'format' => 'datetime', | ||
], | ||
], | ||
'bm_image_gallery_description' => [ | ||
'label' => 'LLL:EXT:bm_image_gallery/Resources/Private/Language/locallang_be.xlf:bm_image_gallery_description', | ||
'config' => [ | ||
'type' => 'text', | ||
'enableRichtext' => true, | ||
], | ||
], | ||
'fallbackCharacter' => '-', | ||
'prependSlash' => false, | ||
'eval' => 'uniqueInPid', | ||
], | ||
], | ||
'bm_image_gallery_location' => [ | ||
'label' => 'LLL:EXT:bm_image_gallery/Resources/Private/Language/locallang_be.xlf:bm_image_gallery_location', | ||
'config' => [ | ||
'type' => 'input', | ||
'size' => 30, | ||
'eval' => 'trim', | ||
], | ||
], | ||
'bm_image_gallery_date' => [ | ||
'label' => 'LLL:EXT:bm_image_gallery/Resources/Private/Language/locallang_be.xlf:bm_image_gallery_date', | ||
'config' => [ | ||
'default' => 0, | ||
'type' => 'input', | ||
'renderType' => 'inputDateTime', | ||
'eval' => 'datetime,int', | ||
], | ||
], | ||
'bm_image_gallery_description' => [ | ||
'label' => 'LLL:EXT:bm_image_gallery/Resources/Private/Language/locallang_be.xlf:bm_image_gallery_description', | ||
'config' => [ | ||
'type' => 'text', | ||
'enableRichtext' => true, | ||
], | ||
], | ||
]; | ||
]; | ||
|
||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('sys_file_collection', $temporaryColumns); | ||
ExtensionManagementUtility::addTCAcolumns('sys_file_collection', $temporaryColumns); | ||
|
||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes( | ||
'sys_file_collection', | ||
'--div--;LLL:EXT:bm_image_gallery/Resources/Private/Language/locallang_be.xlf:bm_image_gallery_tab,' . implode(',', array_keys($temporaryColumns)) . ',' | ||
ExtensionManagementUtility::addToAllTCAtypes( | ||
'sys_file_collection', | ||
'--div--;LLL:EXT:bm_image_gallery/Resources/Private/Language/locallang_be.xlf:bm_image_gallery_tab,' . implode(',', array_keys($temporaryColumns)) . ',' | ||
); | ||
}, 'bm_image_gallery' | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.