Typo3 rendertype inputlink用于大型文件而不复制该文件
我需要一个tca字段,链接到100-900 MB的大文件。我使用了这个TCA:Typo3 rendertype inputlink用于大型文件而不复制该文件,typo3,typo3-8.x,Typo3,Typo3 8.x,我需要一个tca字段,链接到100-900 MB的大文件。我使用了这个TCA: 'config' => [ 'type' => 'input', 'renderType' => 'inputLink', 'fieldControl' => [ 'linkPopup' => [ 'options' => [ 'blindLinkOptions' => 'mail
'config' => [
'type' => 'input',
'renderType' => 'inputLink',
'fieldControl' => [
'linkPopup' => [
'options' => [
'blindLinkOptions' => 'mail,page,spec,url,folder',
'blindLinkFields' => 'class,params,target,title',
],
],
],
]
它可以工作,但当我保存数据时,TYPO3似乎复制了文件,我收到错误消息,超过了50MB的限制。但我只需要一个指向该文件的简单链接
在版本7中,它使用以下代码:
'config' => array (
'type' => 'input',
'size' => '100',
'max' => '255',
'eval' => 'trim',
'wizards' => array(
'_PADDING' => 2,
'link' => array(
'type' => 'popup',
'title' => 'LLL:EXT:cms/locallang_ttc.xml:header_link_formlabel',
'icon' => 'link_popup.gif',
'module' => array(
'name' => 'wizard_element_browser',
'urlParameters' => array(
'mode' => 'wizard',
'act' => 'file'
)
),
'JSopenParams' => 'height=300,width=500,status=0,menubar=0,scrollbars=1'
)
),
)
但是它在TYPO3 8中不再起作用了
我怎样才能解决这个问题
更正:
对不起,我错了。整个问题都是错误的:上面的配置按预期工作,它不复制文件,它只链接到文件。我又犯了一个错误,这导致了对我真正问题的误解
对不起,吵闹。。。
为了结束这个话题,我将把答案标记为正确。在某种程度上,这是因为它给了我一个很好的暗示 看一看。在这里,这些文件仅引用orgin文件
'image' => array(
'label' => 'LLL:EXT:lang/locallang_general.xlf:LGL.images',
'config' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getFileFieldTCAConfig('image', array(
'appearance' => array(
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference'
),
// custom configuration for displaying fields in the overlay/reference table
// to use the imageoverlayPalette instead of the basicoverlayPalette
'foreign_types' => array(
...
)
), $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'])
),
当我们为RTE链接添加类时,是否可以从多个类中为renderType InputLink字段sane的CSS类选择类?