Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Search TYPO3 BE by data present in related model

I have an extension with an "event" model with an "address" field related to the "tt_address" model.

In the TCA configuration I have set:

ctrl['searchFields'] = 'address'

Now, if in TYPO3 BE I search by a name present in the tt_address model, it returns the tt_address record but it doesn’t return the "event" record.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Is it possible to configure the TCA so that searching in TYPO3 BE it will returns also the "event" record?

>Solution :

Unfortunately this is not supported. At the time of this writing only the following TCA types are supported in searchFields:

  • text
  • flex
  • slug
  • input

This means searching by relations will not work for the global search in the TYPO3 backend. You will need to implement a custom backend module if you need this.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading