+ Start a Discussion

Showing the detail page of a parent record on a child record visualforce page

I have an object, ChildObject__c, which I have overidden with a visualforce page. On this page I have a tab where I've displayed fields and related lists from the ParentObject__c. I can hardcode it to show ParentObject__c's related list using <apex:relatedlist>, but what I'd really like to do is show the <apex:detail> of ParentObject__c on this tab.  Since this is in a managed package, and clients will not be able to alter the visualforce coding. The reason I am looking to do this is that they may not want all of the related lists I've hard coded on the ChildObject__c's tab. So theoretically, I'd like it if they remove the related list from ParentObject__c's page layout, the related list is also removed from the visualforce tab on the ChildObject__c's display, so that they don't have to copy and redo the visualforce page I've created.


Is this even possible? Any advice that points me in the right direction would be helpful.