1

I have a Lightning Record page that has a section with a case page layout. When I retrieve the metadata for the Flexipage, the markup for the section with the page layout looks like this:

<flexiPageRegions>
    <componentInstances>
       <componentName>force:detailPanel</componentName>
    </componentInstances>
    <name>main</name>
    <type>Region</type>
</flexiPageRegions>

Where is the layout used in this section defined? I did a find across files for the layout name and can't find anything that looks promising. Does it perhaps inherit from an org setting somewhere - does setting the layout used have to be a manual step (this is a valid answer, but looking for confirmation)?

  • Did you see the documentation flexiPageRegions? – Raul Jan 11 '18 at 17:39
  • @RahulSharma I have - it appears there's not a field defined on that to specify the specific layout. I would be happy to be wrong :) – Brian Mansfield Jan 11 '18 at 17:42
0

The force:detailPanel component is showing the layout as defined by the page layout. See Page Layouts (help) and Layout (Metadata API).

Also when you select the component in Lightning App Builder the right hand side section has more info and links to the specific page layouts used.

  • I don't see how this answers the question - in the OP, the force:detailPage shows no such definition. I'd love to accept an answer here, but please elaborate – Brian Mansfield Apr 26 '18 at 17:47
  • Yes, there is no property or anything you configure on force:detailPage to map this. It is all internal to force:detailPage. What layout it shows is determined by the page layout assignment, which you can read more how to configure here help.salesforce.com/… – Kristian Apr 27 '18 at 19:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.