[SalesForce] Add property on lightning component for the community builder

I create a lightning component that display a custom object : an article, composed with a title, a description and an attachment (an image).
I use this component in the community builder and it's working, but I'd like to be able to change the attachment into the community builder, by adding some property in the component. For exemple, now if I want to change the image (attachment) I have to do it in salesforce directly…

Is it possible to add that kind of property in my component ? If yes how can I do it ?

Here is an image that show a component in the community builder and at the right we can see the properties in question : enter image description here

Best Answer

Currently you have a single component and you are using that to show all the menus .

Instead your each navigation menu itself will be a component and you will keep the URL configurable in the design file .If you need multiple items you will drag multiple of those components .

The other approach is if you are using queries to pull the results ,create a field at database to allow the app admin to input URL's there

Related Topic