I must search and check something in a structure field like this:
Termine:
-
Name: X1
Status: true
-
Name: X2
Status: false
-
Name: X3
Status: true
Now I must have a entry in this. As I have seen I can get it like this:
if ( $page->termine()->toStructure()->findBy('Name','X2') ) {
echo 'FOUND';
}
Ok, now I have the entry. But how can I access this entry? I wish to check now if the entry “X2” which has been found the status “true” has. Can anybody help?