Project

General

Profile

Actions

Bug #78605

closed

FILES object references property doesn't respect hidden references

Added by Sebastian Hofer about 8 years ago. Updated about 6 years ago.

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

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

To get some files references via TypoScript the FILES object can be used:

10 = FILES
10 {
  maxItems = 1
  references {
    table = tx_myext_domain_model_mymodel
    uid.field = uid
    fieldName = image
  }

  renderObj = IMG_RESOURCE
  renderObj {
    file.import.data = file:current:publicUrl
  }
}

A similar script is part of a script to render the file path for the solr index. Unfortunately it does not respect the hidden field in sys_file_reference table. So if the image in the record is hidden, it will be indexed anyway.

Actions

Also available in: Atom PDF