Project

General

Profile

Actions

Feature #16714

closed

Global vars do not work inside flexform_ds.xml but in tca.php

Added by Steffen Müller about 18 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-11-13
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

There's the possiblilty to limit the file upload in the backend to certain file extensions. For example
<config>
<type>group</type>
<internal_type>file</internal_type>
<allowed>gif,jpg,jpeg,tif,bmp,pcx,tga,png</allowed>
</config>

According to the example in TYPO3 core API documentation ( http://typo3.org/documentation/document-library/core-documentation/doc_core_api/current/view/4/2/#id2817038 ), one could use $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] instead of the comma-seperated list of extension.

This works in tca.php but not in flexform_ds.xml

(issue imported from #M4511)

Actions #1

Updated by Martin Kutschker about 18 years ago

What could work is to allow for a CV:<key1>:<key2> (eg CV:GFX:imagefile_ext) syntax to have TYPO3_CONF_VARS access in XML files.

Actions #2

Updated by Clemens Riccabona almost 13 years ago

  • Target version deleted (0)

Any news since 2006??

btw this could be interesting for max_size too (according to $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize']).

Actions #3

Updated by Alexander Opitz over 11 years ago

  • Status changed from New to Needs Feedback
  • PHP Version deleted (4)

As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?

Actions #4

Updated by Steffen Müller over 11 years ago

please close

Actions #5

Updated by Chris topher over 11 years ago

  • Status changed from Needs Feedback to Closed
Actions

Also available in: Atom PDF