Lightning Bolt Solution is an advanced framework to the Lightning Templates. It uses Lightning components to build Web Portals, Websites and User Communities. It consists of Custom Lightning Apps, Process Flows and Lightning Community Templates.
In Lightning Bolt Solutions, we can add either
1.Lightning Community Templates or
2.Flow Categories or
3.Custom Lightning Apps or all of them.
STEPS
- Create Lightning Community Templates or Flow Categories or Custom Apps.
- Implement Lightning Bolt Solutions.
- Package and distribute a Lightning Bolt Solution.
- View the Package that we have installed in Our Org.
1.Creating a Customized Lightning Community Template:
Here we are showing how to create Customized Lightning Community Template. For This Customized Lightning Community Template, we have to write Theme layout Lightning Component.
Below is the code for Theme layout Lightning Component.
COMPONENT
Component with Theme Layout must implement forceCommunity: themeLayout interface.
{! v. body} is added when content changes from page to page in the layout.
Attributes that are declared as Aura.Component[] in the layout are rendered open regions forming the open regions and basic structure of the theme layout.
Here we can see how to add Custom Theme layout Lightning Component to Community Builder.
Once you are in Community Builder, We can add the Custom Theme layout Lightning Component by using Settings tab in Community Builder.
1.In Community Builder, Click on Settings | Theme | Configure.
2.Edit the Default Theme Layout Component. Select your “Custom Theme Layout Component”.
Then we can click on Publish to publish all recent changes to our community members. These changes to be visible to users, our community must be activated in Community Workspaces. We will receive an email confirmation when our changes are live.
Below figure shows the Custom Theme layout Community Template which I have created.
In order to use this Lightning Template in Lightning Bolt Solution we have to Export the Customized Lightning Community Template. For Exporting the Template goto Community Builder and select Settings | Developer and click on Export a Template.
After we export the template, it appears in the Community Creation wizard in your org. We can then use it as a base for building new communities. If we package the template in a Lightning Bolt Solution and install it in another org, it appears in that org’s Community Creation wizard.
If we don’t Export this customized lightning community template it will not be shown when we are selecting Community Templates in Lightning Bolt Solution.
2.Create Flow Category:
When we want to add flows to a Lightning Bolt Solution, we need to group them into a flow category. Then add one or more Flow Categories to your solution.In this Lightning Bolt Solution, we are adding Flow Categories also, these are the steps for adding Flow Categories.
We can only add active flows to a flow category.
- From Setup, enter Flow Category in the Quick Find box, and select Flow Category.
- Click on New Flow Category.
- Enter your developer name and a description.
- Choose active flows.
3.Create a Lightning Bolt Solution:
Now Customized Lightning Community templates and Flow Categories are ready to be added in Lightning Bolt Solution. Below we are showing steps for how to create Lightning Bolt Solutions and how to add Custom Apps and Community Templates and Flows.
In Lightning Bolt Solution, we can also add any Custom Apps available, Whether or not you include a Community template, you can add custom apps or flows to your Lightning Bolt Solution.
Then we’re ready to create a Lightning Bolt Solution.
1.From Setup, enter Lightning Bolt Solution in the Quick Find box, and select Lightning Bolt Solutions.
2.On the Details and Branding page, enter information about your solution. For example, enter your company and solution names. Click on Next.
3.On the Solution Highlights page, add any combination of Community templates, flow categories, and custom apps. Click on Next.
5.Review the Summary page and click on Finish.
4.Package and Distribute a Lightning Bolt Solution:
After we create a Lightning Bolt Solution, package the solution to distribute it to other users or orgs. We can upload the package to AppExchange to share or sell your solution.
1.From Setup, enter Packages in the Quick Find box, and then click on Packages.
2.Give Some Name to package and then Click on the Add Button.
3.To package a Lightning Bolt Solution, select Lightning Bolt Solution as the component type, and select your solution then click on the Add to Package button.
4.Upload the package. Then distribute it on AppExchange, or share the link privately with your clients, customers, or partners.
On the Upload Package page, Enter a Version Name, Enter a Version Number and we can have to specify a link to release notes and specify a link to post install instructions, link should be like (https://somename) and enter and confirm a password to share the package privately with anyone who has the password, and then Click Upload. We receive an email that includes an installation link when our package has been uploaded successfully.
5.View the Package that we have installed in Our Org:
We have installed the Package using Link which we have received via mail. In below Figure we are showing Installed Package that has the Lightning Bolt Solution.
When we are creating Community the Customized Lightning Template that we have installed will be shown as a Base Template. Below are the Examples for Base Templates Which we have Installed.
Lightning Bolt Solution expands on the power and adaptability offered by Lightning Components. It makes considerably less demanding for Salesforce partners and clients to build Websites and User Communities.