[SalesForce] How to display History related list using or by any other direct approach on a Visualforce page

I have a custom Visualforce page at the end of which I want to display some related object list (like Activity Histories, Notes and Attachments) as they are on the standard detail page of a record.

What should I use in a <apex:relatedList> tag to display Custom Object History related list?

For example: Assume the custom object name as Detail_Rec__c.

So I tried this:

<apex:relatedList list="Detail_Rec__Histories" />

and got "invalid child relationship name" error.

Best Answer

For notes and attachment use following name in tag:-

<apex:relatedList subject="{!account}" list="NotesAndAttachments" />

For Activity History:

<apex:relatedList subject="{!customObject__c}" list="ActivityHistories" />

For native object History Ex: Opportunity:

 <apex:relatedlist list="OpportunityHistories" title="Opp History"/>