+ Start a Discussion

When using the Apex Detail tag how do I select the page layout I want to use?

Is there a way via APEX or VisualForce to select (override) the detail layout when displaying a detail tag in Visualforce?


I want to create a specific detail page layout just for this particular page, however I would prefer to build it declaratively rather than having to build it field (or fieldset) by field in Visualforce.




I don't think that there is a way to achieve this at present - I believe the apex:detail picks up the page layout specific to the record type and profile, but to be honest I'm struggling to find a document that states that.