TYPO3 内联元素外观配置部分不起作用 [英] TYPO3 Inline element appearance configuration partially does not work

查看:24
本文介绍了TYPO3 内联元素外观配置部分不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的 TCA/Overrides 上有自己的内容元素,并且配置了一些外观设置.问题是我在后端部分获得了这些设置.这是我的代码:

I have an own content element on my TCA/Overrides and i have some appearance settings configured. The problem is that i get these settings partially on my backend. This is my code:

$projectOptions = array( 
'ak_website' => [
    'exclude' => 1,
    'label' => 'LLL:EXT:ak_website_base/Resources/Private/Language/locallang.xlf:website.items',
    'config' => [
      'type' => 'inline',
      'foreign_table' => 'ak_website',
      'foreign_field' => 'tt_content',
      'maxitems' => 999,
      'appearance' => [
        'useSortable' => 1,
        'collapseAll' => 1,
        'levelLinksPosition' => 'bottom',
        'enabledControls' => [
            'info' => TRUE,
            'new' => TRUE,
            'dragdrop' => TRUE,
            'sort' => TRUE,
            'hide' => TRUE,
            'delete' => TRUE,
            'localize' => TRUE,
        ],
      ],
    ],
  ],
);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content',$projectOptions);

现在,一切正常,但在外观设置上,以下设置不起作用.

Now, everything works as it suppose to work BUT on the appearance settings the following settings do not work.

  • useSortable
  • 拖放
  • 排序
  • 隐藏
  • 删除
  • 本地化

信息有效!

在我看来,与操纵有关的一切都不起作用.我可能忘记设置一些权限,或者包含 TYPO3 功能等.我现在真的不知道该怎么做.非常适合将来的参考资料以及可能遇到相同问题的人在这里找到解决方案.

The way i see it, everything that has to do with the manipulation, do not work. I might have forgotten to set some rights, or include a TYPO3 function etc. I really have no idea what to do right now. It would be great for future references and for people who might come across the same problem to find the solution here.

最好的问候,

推荐答案

感谢 TYPO3 社区,特别是 Carine LAVAL,我找到了答案.

Thanks to the TYPO3 community and specifically Carine LAVAL i found my answer.

我的数据库需要一个排序列.

I needed a sorting column on my database.

这是如何工作的:

ak_website.php (TCA)

添加 'sortby' => 'sorting',

Add 'sortby' => 'sorting',

<?php
 return [
  'ctrl' => [
   'sortby' => 'sorting',
],

ext_tables.sql

将其添加到您的桌子上:

Add this on your table:

sorting int(11) DEFAULT '0' NOT NULL,

你已经准备好了:)

这篇关于TYPO3 内联元素外观配置部分不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆