function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Paul FoleyPaul Foley 

How can my lightning component have different content in the community builder?

We're building a custom conponent for a community, and wanted to know if there is a way to have some specific content appear only when the user is in the community builder?

Our conponent is used to conditionally pop a modal box, so normally nothing would show. The issue is that when the component is on the page in the builder, you dont know it's there unless it's selected.
Dev_AryaDev_Arya
Hi Paul,

I would try to put an attribute and pop up the modal conditionally based on the value of the attribute. For the purpose of testing in the builder, I will set that the value of the attribute explicitly.

Cheers,
Dev