반응형
In this blog, I would like to discuss you about how to create a custom lightning page template or layout using SFDX.
Create Lightning Component
Lightning component resides inside a lightning project so create a project and follow the below steps. If you are not aware of project creation then go through my blog.
- Create a lightning component in Visual Studio Code
- sfdx force:lightning:component:create -n <component name> -d <location>
- Modify the design page to show the custom attribute in the layout selection or page layout editor
![](https://blog.kakaocdn.net/dn/oYVnV/btrzvJSuR05/9aKKFWsGvKGXsCDcO63q80/img.png)
Push Code Into Scratch Org
- Create a scratch org
- sfdx force:org:create -s -f config/project-scratch-def.json -a <alias name>
- List all connected orgs including scratch org with Visual Studio Code
- sfdx force:org:list –all
- finally, push the code into scratch org created
Create A Page Named My Bike In The Lightning App Builder.
- Go to setup –> Lightning App Builder -> New
- Select App Page in the options
- Then, fill the field with your Page name and click Next
- Select your custom or standard layout
- Our custom three column layout displayed under Custom section
- Then, Click Finish button to include the custom or standard component in the layout
- Click Save and Activate your page to the preferred profiles and apps
https://developer.salesforce.com/docs/component-library/bundle/lightning:appHomeTemplate
반응형
'스타 블로그' 카테고리의 다른 글
Administration Essentials for New Admins (ADM-201) (0) | 2022.04.16 |
---|---|
Custom Validation In A Lightning Input Field Component (0) | 2022.04.16 |
SFDX – Salesforce Command Line Interface (CLI) Commands (0) | 2022.04.16 |
Lightning Component For Communicating Server Side Aura Method (0) | 2022.04.16 |
쿠리야마 리오 인★ 화보같은 사진 모음 (0) | 2022.04.08 |