I've set up a global set "attachmentGlobals" with a matrix field inside named "globalFiles". This matrix has only one block "files" which has a text field "fileId" and an Asset field "fileAsset".
I would like to retrieve a specific row searching for the "fileId" content.
I've triyed in those ways:
Test 1:
attachmentGlobals.globalFiles.fileId('sitelogo')
Return me an Error saying no method "fileId" is available
Test 2:
attachmentGlobals.globalFiles.find('fileId:sitelogo')
No error, but no results
Test 3:
attachmentGlobals.globalFiles.search('fileId:sitelogo')
No error, but no results
I've search Craft documentation and some examples on Stack Exchange, but nothing seems to help.
In the first place, is this possible? or were am I wrong?
Thank you in advance.
PS: I know this issue could be solved using only assets fields, but I would like to know if is possible to search for matrix fields by filed content.