first commit

This commit is contained in:
Sven Wappler
2021-08-16 16:15:21 +02:00
commit fde2759722
32 changed files with 1841 additions and 0 deletions

41
ext_localconf.php Normal file
View File

@@ -0,0 +1,41 @@
<?php
/*
* This file is part of the package buepro/bookmark_pages.
*
* For the full copyright and license information, please read the
* LICENSE file that was distributed with this source code.
*/
defined('TYPO3') or die('Access denied.');
(function () {
$version = \TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version();
$version = \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($version);
if ($version < 10000000) {
// For TYPO3 < V10
// @extensionScannerIgnoreLine
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'WapplerSystems.BookmarkPages',
'Bookmarks',
[
'Bookmarks' => 'index, bookmark, delete, listEntries',
],
// non-cacheable actions
[
'Bookmarks' => 'bookmark, delete, listEntries',
]
);
} else {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin(
'BookmarkPages',
'Bookmarks',
[
\WapplerSystems\BookmarkPages\Controller\BookmarksController::class => 'index, bookmark, delete, listEntries'
],
[
\WapplerSystems\BookmarkPages\Controller\BookmarksController::class => 'bookmark, delete, listEntries'
]
);
}
})();