Zwischenstand
This commit is contained in:
@@ -12,4 +12,4 @@ defined('TYPO3') || die('Access denied.');
|
||||
/**
|
||||
* add TypoScript to template record
|
||||
*/
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('ws_bookmark_pages', 'Configuration/TypoScript/', 'Bookmark Pages');
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile('bookmarks_likes_ratings', 'Configuration/TypoScript/', 'Bookmark Pages');
|
||||
|
@@ -10,36 +10,19 @@
|
||||
defined('TYPO3') || die('Access denied.');
|
||||
|
||||
(function () {
|
||||
$version = \TYPO3\CMS\Core\Utility\VersionNumberUtility::getCurrentTypo3Version();
|
||||
$version = \TYPO3\CMS\Core\Utility\VersionNumberUtility::convertVersionNumberToInteger($version);
|
||||
/**
|
||||
* Register Plugin
|
||||
*/
|
||||
if ($version < 10000000) {
|
||||
// For TYPO3 < V10
|
||||
// @extensionScannerIgnoreLine
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||
'WapplerSystems.BookmarkPages',
|
||||
'Bookmarks',
|
||||
'Bookmark Pages'
|
||||
);
|
||||
} else {
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||
'BookmarkPages',
|
||||
'Bookmarks',
|
||||
'Bookmark Pages'
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add flexForm
|
||||
*/
|
||||
$pluginSignature = 'bookmarkpages_bookmarks';
|
||||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
|
||||
$pluginSignature,
|
||||
'FILE:EXT:ws_bookmark_pages/Configuration/FlexForms/Bookmarks.xml'
|
||||
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
|
||||
'BookmarksLikesRatings',
|
||||
'Bookmarks',
|
||||
'Bookmark Pages'
|
||||
);
|
||||
|
||||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'recursive,select_key,pages';
|
||||
|
||||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['bookmarkpages_bookmarks'] = 'pi_flexform';
|
||||
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
|
||||
'bookmarkpages_bookmarks',
|
||||
'FILE:EXT:bookmarks_likes_ratings/Configuration/FlexForms/Bookmarks.xml'
|
||||
);
|
||||
|
||||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['bookmarkpages_bookmarks'] = 'recursive,select_key,pages';
|
||||
})();
|
||||
|
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.rating.title',
|
||||
'label' => 'uid',
|
||||
'label_alt' => 'ratingobject,ratedobjectuid,votes',
|
||||
'label_userFunc' => 'Thucke\\ThRating\\Userfuncs\\Tca->getRatingRecordTitle',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'cruser_id' => 'cruser_id',
|
||||
'delete' => 'deleted',
|
||||
'adminOnly' => true,
|
||||
'hideTable' => true,
|
||||
'editlock' => 'ratedobjectuid',
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden',
|
||||
],
|
||||
'iconfile' => 'EXT:bookmarks_likes_ratings/Resources/Public/Icons/tx_bookmarkslikesratings_domain_model_rating.gif',
|
||||
],
|
||||
'interface' => [
|
||||
'showRecordFieldList' => 'hidden, ratedobjectuid, votes',
|
||||
],
|
||||
'columns' => [
|
||||
'pid' => [
|
||||
'exclude' => 1,
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
],
|
||||
],
|
||||
'hidden' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
],
|
||||
],
|
||||
'ratingobject' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.rating.ratingobject',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'foreign_table' => 'tx_bookmarkslikesratings_domain_model_ratingobject',
|
||||
'maxitems' => 1,
|
||||
'minitems' => 1,
|
||||
'disableNoMatchingValueElement' => 1,
|
||||
],
|
||||
],
|
||||
'ratedobjectuid' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.rating.ratedobjectuid',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '8',
|
||||
'max' => '12',
|
||||
'eval' => 'int',
|
||||
'default' => 0,
|
||||
],
|
||||
],
|
||||
'votes' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.rating.votes',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'tx_bookmarkslikesratings_domain_model_vote',
|
||||
'foreign_field' => 'rating',
|
||||
'foreign_default_sortby' => 'uid',
|
||||
'appearance' => [
|
||||
'levelLinksPosition' => 'bottom',
|
||||
'collapseAll' => 1,
|
||||
'expandSingle' => 1,
|
||||
],
|
||||
],
|
||||
],
|
||||
'currentrates' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.rating.currentrates',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => '30',
|
||||
],
|
||||
],
|
||||
'uid' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.rating.uid',
|
||||
'config' => [
|
||||
'type' => 'none'
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => 'hidden, ratedobjectuid, votes'
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'1' => [
|
||||
'showitem' => ''
|
||||
],
|
||||
],
|
||||
];
|
||||
|
@@ -0,0 +1,111 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.ratingobject.title',
|
||||
'label' => 'uid',
|
||||
'label_alt' => 'ratetable,ratefield',
|
||||
'label_userFunc' => 'Thucke\\ThRating\\Userfuncs\\Tca->getRatingObjectRecordTitle',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'cruser_id' => 'cruser_id',
|
||||
'delete' => 'deleted',
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden',
|
||||
],
|
||||
'iconfile' => 'EXT:bookmarks_likes_ratings/Resources/Public/Icons/tx_bookmarkslikesratings_domain_model_ratingobject.gif',
|
||||
],
|
||||
'interface' => [
|
||||
'showRecordFieldList' => 'hidden, ratetable, ratefield',
|
||||
],
|
||||
'columns' => [
|
||||
'pid' => [
|
||||
'exclude' => 1,
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
],
|
||||
],
|
||||
'hidden' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
],
|
||||
],
|
||||
'ratetable' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.ratingobject.ratetable',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 20,
|
||||
'eval' => 'trim,required',
|
||||
'max' => 64,
|
||||
],
|
||||
],
|
||||
'ratefield' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.ratingobject.ratefield',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 20,
|
||||
'eval' => 'trim,required',
|
||||
'max' => 64,
|
||||
],
|
||||
],
|
||||
'uid' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.ratingobject.uid',
|
||||
'config' => [
|
||||
'type' => 'none'
|
||||
],
|
||||
],
|
||||
'stepconfs' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.ratingobject.stepconfs',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'tx_bookmarkslikesratings_domain_model_stepconf',
|
||||
'foreign_field' => 'ratingobject',
|
||||
'foreign_default_sortby' => 'steporder',
|
||||
'appearance' => [
|
||||
'levelLinksPosition' => 'bottom',
|
||||
'collapseAll' => true,
|
||||
'expandSingle' => true,
|
||||
'newRecordLinkAddTitle' => true,
|
||||
//'newRecordLinkPosition' => 'both',
|
||||
//'showSynchronizationLink' => true,
|
||||
//'showAllLocalizationLink' => true,
|
||||
//'showPossibleLocalizationRecords' => 1,
|
||||
//'showRemovedLocalizationRecords' => 1,
|
||||
],
|
||||
],
|
||||
],
|
||||
'ratings' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.ratingobject.ratings',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'tx_bookmarkslikesratings_domain_model_rating',
|
||||
'foreign_field' => 'ratingobject',
|
||||
'foreign_default_sortby' => 'uid',
|
||||
'appearance' => [
|
||||
'levelLinksPosition' => 'bottom',
|
||||
'collapseAll' => 1,
|
||||
'expandSingle' => 1,
|
||||
'newRecordLinkAddTitle' => 1,
|
||||
'newRecordLinkPosition' => 'both',
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => 'hidden, ratetable, ratefield, stepconfs, ratings'
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'1' => [
|
||||
'showitem' => ''
|
||||
],
|
||||
],
|
||||
];
|
||||
|
@@ -0,0 +1,142 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.stepconf.title',
|
||||
'label' => 'uid',
|
||||
'label_alt' => 'ratingobject,steporder',
|
||||
'label_userFunc' => 'Thucke\\ThRating\\Userfuncs\\Tca->getStepconfRecordTitle',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'cruser_id' => 'cruser_id',
|
||||
'delete' => 'deleted',
|
||||
'adminOnly' => true,
|
||||
'hideTable' => true,
|
||||
'editlock' => 'steporder,stepweight',
|
||||
'dividers2tabs' => true,
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden'
|
||||
],
|
||||
'iconfile' => 'EXT:bookmarks_likes_ratings/Resources/Public/Icons/tx_bookmarkslikesratings_domain_model_stepconf.gif',
|
||||
],
|
||||
'interface' => [
|
||||
'showRecordFieldList' => 'hidden, ratingobject, steporder, stepweight, stepname',
|
||||
],
|
||||
'columns' => [
|
||||
'pid' => [
|
||||
'exclude' => 1,
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
],
|
||||
],
|
||||
'hidden' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
],
|
||||
],
|
||||
'ratingobject' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.stepconf.ratingobject',
|
||||
'config' => [
|
||||
'type' => 'passthrough',
|
||||
],
|
||||
],
|
||||
'steporder' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.stepconf.steporder',
|
||||
'l10n_display' => 'defaultAsReadonly',
|
||||
//'l10n_cat' => 'media',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '8',
|
||||
'max' => '12',
|
||||
'eval' => 'Thucke\\ThRating\\Evaluation\\DynamicCssEvaluator,int,required',
|
||||
'default' => '1',
|
||||
'range' => [
|
||||
'lower' => 1
|
||||
],
|
||||
],
|
||||
],
|
||||
'stepweight' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.stepconf.stepweight',
|
||||
'l10n_display' => 'defaultAsReadonly',
|
||||
//'l10n_cat' => 'media',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '8',
|
||||
'max' => '12',
|
||||
'eval' => 'Thucke\\ThRating\\Evaluation\\DynamicCssEvaluator,int',
|
||||
'default' => '1',
|
||||
],
|
||||
],
|
||||
'stepname' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.stepconf.stepname',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'foreign_table' => 'tx_bookmarkslikesratings_domain_model_stepname',
|
||||
'foreign_field' => 'stepconf',
|
||||
'foreign_unique' => 'sys_language_uid',
|
||||
'foreign_default_sortby' => 'sys_language_uid',
|
||||
'appearance' => [
|
||||
'levelLinksPosition' => 'bottom',
|
||||
'collapseAll' => true,
|
||||
'expandSingle' => true,
|
||||
'newRecordLinkAddTitle' => true,
|
||||
'enabledControls' => [
|
||||
'info' => true,
|
||||
'delete' => true,
|
||||
'localize' => true,
|
||||
],
|
||||
'showPossibleLocalizationRecords' => true,
|
||||
'showSynchronizationLink' => true,
|
||||
'newRecordLinkPosition' => 'both',
|
||||
'showAllLocalizationLink' => true,
|
||||
'showRemovedLocalizationRecords' => 1,
|
||||
],
|
||||
'behaviour' => [
|
||||
'allowLanguageSynchronization' => true,
|
||||
'enableCascadingDelete' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
'votes' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.stepconf.votes',
|
||||
'l10n_mode' => 'eclude',
|
||||
'config' => [
|
||||
'type' => 'inline',
|
||||
'behaviour' => [
|
||||
'allowLanguageSynchronization' => true,
|
||||
],
|
||||
'foreign_table' => 'tx_bookmarkslikesratings_domain_model_vote',
|
||||
'foreign_field' => 'vote',
|
||||
'foreign_default_sortby' => 'uid',
|
||||
'appearance' => [
|
||||
'levelLinksPosition' => 'bottom',
|
||||
'collapseAll' => 1,
|
||||
'expandSingle' => 1,
|
||||
'newRecordLinkAddTitle' => true,
|
||||
],
|
||||
],
|
||||
],
|
||||
'uid' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.stepconf.uid',
|
||||
'config' => [
|
||||
'type' => 'passthrough',
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => 'hidden, steporder, stepweight, stepname, votes'
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'1' => [
|
||||
'showitem' => ''
|
||||
],
|
||||
],
|
||||
];
|
||||
|
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.stepname.title',
|
||||
'label' => 'uid',
|
||||
'label_alt' => 'stepconf,sys_language_uid',
|
||||
'label_userFunc' => 'Thucke\\ThRating\\Userfuncs\\Tca->getStepnameRecordTitle',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'cruser_id' => 'cruser_id',
|
||||
'origUid' => 't3_origuid',
|
||||
'languageField' => 'sys_language_uid',
|
||||
'transOrigPointerField' => 'l18n_parent',
|
||||
'transOrigDiffSourceField' => 'l18n_diffsource',
|
||||
'delete' => 'deleted',
|
||||
'adminOnly' => false,
|
||||
'hideTable' => false,
|
||||
'editlock' => 'sys_language_uid,stepconf',
|
||||
'dividers2tabs' => true,
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden'
|
||||
],
|
||||
'iconfile' => 'EXT:bookmarks_likes_ratings/Resources/Public/Icons/tx_bookmarkslikesratings_domain_model_stepname.gif',
|
||||
],
|
||||
'interface' => [
|
||||
'showRecordFieldList' => 'hidden, stepconf, stepname, sys_language_uid',
|
||||
],
|
||||
'columns' => [
|
||||
'pid' => [
|
||||
'exclude' => 1,
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
],
|
||||
],
|
||||
'hidden' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
|
||||
'l10n_display' => 'hideDiff',
|
||||
'l10n_mode' => 'exclude',
|
||||
'displayCond' => [
|
||||
'AND' => [
|
||||
'FIELD:sys_language_uid:=:0',
|
||||
],
|
||||
],
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'default' => 0,
|
||||
],
|
||||
],
|
||||
'stepconf' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.stepname.stepconf',
|
||||
'config' => [
|
||||
'type' => 'passthrough',
|
||||
],
|
||||
],
|
||||
'stepname' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.stepname.stepname',
|
||||
'l10n_mode' => 'prefixLangTitle',
|
||||
'l10n_display' => 'hideDiff',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '15',
|
||||
'max' => '64',
|
||||
'eval' => 'Thucke\\ThRating\\Evaluation\\DynamicCssEvaluator,trim',
|
||||
],
|
||||
],
|
||||
'uid' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.stepname.uid',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
],
|
||||
],
|
||||
'sys_language_uid' => [
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.language',
|
||||
'config' => [
|
||||
'readOnly' => true,
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'special' => 'languages',
|
||||
'foreign_table' => 'sys_language',
|
||||
'foreign_table_where' => 'ORDER BY sys_language.title',
|
||||
'items' => [
|
||||
[
|
||||
'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.allLanguages',
|
||||
-1,
|
||||
'flags-multiple'
|
||||
]
|
||||
],
|
||||
'default' => 0,
|
||||
],
|
||||
],
|
||||
'l18n_parent' => [
|
||||
'displayCond' => 'FIELD:sys_language_uid:>:0',
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.l18n_parent',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'items' => [
|
||||
[
|
||||
'',
|
||||
0
|
||||
],
|
||||
],
|
||||
'foreign_table' => 'tx_bookmarkslikesratings_domain_model_stepname',
|
||||
'foreign_table_where' => 'AND {#tx_bookmarkslikesratings_domain_model_stepname}.{#uid}=###REC_FIELD_l18n_parent###' .
|
||||
'AND {#tx_bookmarkslikesratings_domain_model_stepname}.{#sys_language_uid} IN (-1,0)',
|
||||
'fieldWizard' => [
|
||||
'selectIcons' => [
|
||||
'disabled' => true,
|
||||
],
|
||||
],
|
||||
'default' => 0
|
||||
],
|
||||
],
|
||||
'l18n_diffsource' => [
|
||||
'config' => [
|
||||
'type' => 'passthrough',
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => ['showitem' => 'hidden, stepname, stepconf, sys_language_uid'],
|
||||
],
|
||||
'palettes' => [
|
||||
'1' => ['showitem' => ''],
|
||||
],
|
||||
];
|
||||
|
108
Configuration/TCA/tx_bookmarkslikesratings_domain_model_vote.php
Normal file
108
Configuration/TCA/tx_bookmarkslikesratings_domain_model_vote.php
Normal file
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.vote.title',
|
||||
'label' => 'uid',
|
||||
'label_alt' => 'rating,fe_user,vote',
|
||||
'label_userFunc' => 'WapplerSystems\\BookmarksLikesRatings\\Userfuncs\\Tca->getVoteRecordTitle',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'cruser_id' => 'cruser_id',
|
||||
'delete' => 'deleted',
|
||||
'adminOnly' => true,
|
||||
'hideTable' => true,
|
||||
'editlock' => 'rating',
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden',
|
||||
],
|
||||
'iconfile' => 'EXT:bookmarks_likes_ratings/Resources/Public/Icons/tx_bookmarkslikesratings_domain_model_vote.gif',
|
||||
],
|
||||
'interface' => [
|
||||
'showRecordFieldList' => 'hidden, rating, voter, vote',
|
||||
],
|
||||
'columns' => [
|
||||
'pid' => [
|
||||
'exclude' => 1,
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
],
|
||||
],
|
||||
'hidden' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:lang/Resources/Private/Language/locallang_general.xlf:LGL.hidden',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
],
|
||||
],
|
||||
'rating' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.vote.rating',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'foreign_table' => 'tx_bookmarkslikesratings_domain_model_rating',
|
||||
'maxitems' => 1,
|
||||
'minitems' => 1,
|
||||
'disableNoMatchingValueElement' => 1,
|
||||
],
|
||||
],
|
||||
'voter' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.vote.voter',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'foreign_table' => 'fe_users',
|
||||
'foreign_table_where' => 'ORDER BY fe_users.username',
|
||||
'items' => [
|
||||
[
|
||||
'--div--', 0
|
||||
],
|
||||
],
|
||||
'fieldControl' => [
|
||||
'editPopup' => [
|
||||
'disabled' => false,
|
||||
],
|
||||
'addRecord' => [
|
||||
'disabled' => false,
|
||||
'options' => [
|
||||
'setValue' => 'prepend',
|
||||
],
|
||||
'listModule' => [
|
||||
'disabled' => false,
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
],
|
||||
//TODO Prio 3: only provide valid references from foreign table
|
||||
'vote' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.vote.vote',
|
||||
'config' => [
|
||||
'type' => 'select',
|
||||
'renderType' => 'selectSingle',
|
||||
'foreign_table' => 'tx_bookmarkslikesratings_domain_model_stepconf',
|
||||
'maxitems' => 1,
|
||||
'minitems' => 1,
|
||||
'disableNoMatchingValueElement' => 1,
|
||||
],
|
||||
],
|
||||
'uid' => [
|
||||
'label' => 'LLL:EXT:bookmarks_likes_ratings/Resources/Private/Language/locallang.xlf:tca.model.vote.uid',
|
||||
'config' => [
|
||||
'type' => 'none'
|
||||
],
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'1' => [
|
||||
'showitem' => 'hidden, rating, voter, vote'
|
||||
],
|
||||
],
|
||||
'palettes' => [
|
||||
'1' => [
|
||||
'showitem' => ''
|
||||
],
|
||||
],
|
||||
];
|
Reference in New Issue
Block a user