bookmark-pages/Configuration/TCA/Overrides/tt_content.php

27 lines
872 B
PHP
Raw Permalink Normal View History

2021-08-16 16:15:21 +02:00
<?php
defined('TYPO3') || die('Access denied.');
(function () {
2021-08-17 19:45:38 +02:00
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'BookmarksLikesRatings',
'Bookmarks',
'Bookmark Pages'
);
2021-08-20 13:33:13 +02:00
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
'BookmarksLikesRatings',
'PersonalBookmarks',
'Personal bookmarks of a user'
);
2021-08-17 19:45:38 +02:00
2021-08-20 13:33:13 +02:00
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['bookmarkslikesratings_bookmarks'] = 'pi_flexform';
2021-08-16 16:15:21 +02:00
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
2021-08-20 13:33:13 +02:00
'bookmarkslikesratings_bookmarks',
2021-08-17 19:45:38 +02:00
'FILE:EXT:bookmarks_likes_ratings/Configuration/FlexForms/Bookmarks.xml'
2021-08-16 16:15:21 +02:00
);
2021-08-20 13:33:13 +02:00
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['bookmarkslikesratings_bookmarks'] = 'recursive,select_key,pages';
2021-08-16 16:15:21 +02:00
})();