---
schema_version: "1"
id: c0bfe794cd4562e0056710649c954c0560eeb85991dfdb020451c442a5b3bf92
title: Displaying Related Lists for Custom Objects
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/salesforce-pages-developers-guide/guides/pages/quick-start/pages-quick-start-custom-mapping.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-pages-developers-guide/guide/pages-quick-start-custom-mapping.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 9e5e684d3e83d1e53d65b3a44454028e6106f0ceaeefe8db7c6e5caff8e32d2e
products:
  - Visualforce Developer Guide
  - Platform Developer Content
---

# Displaying Related Lists for Custom Objects

**important:** Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

Displaying custom objects and their related lists with Visualforce is very simple.

Suppose you have three custom objects: MyChildObject, MyMasterObject, and MyLookupObject. MyChildObject has a master-detail relationship with MyMasterObject (which is the master). MyLookupObject also has a Lookup relationship with MyChildObject.

If you want to create a Visualforce page that displays the related list for MyMasterObject, use the following markup:

<!-- otherprops: apex_page -->
```markup
<apex:page standardController="MyMasterObject__c">
	<apex:relatedList list="MyChildObjects__r" />
</apex:page>
```

For this page to display the related list data, the ID of a valid custom object record with a custom relationship must be specified as a query parameter in the URL for the page, for example, http://_MyDomain_login_URL_/myCustomRelatedList?id=a00x00000003ij0.

Although MyLookupObject uses a different type of relationship, the syntax is identical:

<!-- otherprops: apex_page -->
```markup
<apex:page standardController="MyLookupObject__c">
	<apex:relatedList list="MyChildObjects__r" />
</apex:page>
```

