bookmark-pages/Configuration/TCA/tx_bookmarkslikesratings_domain_model_rating.php

101 lines
3.4 KiB
PHP
Raw Permalink Normal View History

2021-08-17 19:45:38 +02:00
<?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' => ''
],
],
];