Issue Bug Closed

#78605FILES object references property doesn't respect hidden references

Sebastian Hofer 11/08/16, 11:22 updated 11/08/18, 22:27

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.