I have a Visualforce page with a standard controller Account. I want to access a rich text field in a related Contact. Below is what I tried:
<apex:outputText value="{!Account.Contacts__r.rich_text_field}" escape="false" />
However it is giving me the error below:
Invalid field Contacts__r for SObject Account
My understanding is since for 1 Account you can have many Contacts i.e. one to many relationship, and since I am at the Account level, I can use the 'Child Relationship Name' on the lookup field in Contact to traverse to the child object (Contact) and select the Contact field I need.
Is this wrong? I am unsure why I have this error.