2

So I have a lightning component

<aura:component implements="forceCommunity:availableForAllPageTypes" access="global" controller="GSTAR_LGHT_CTRL">
<aura:attribute name="accs" type="Account[]"/>

<aura:handler name="init" action="{!c.doInit}" value="{!this}"/>

<lightning:layout>
    <lightning:layoutItem padding="around-small" size="6">
        <lightning:card title="My Brand new Lightning Component">
....

And it shows up in my Community Builder. And I am able to publish my community builder and set it as the landing page for my community.
But when I log in as a community user my Lightning Component is just not there. All the other components from the Builder show up.
So what am I missing?

8
  • Did you receive community published successfully email before loging in and trying? Nov 29, 2018 at 12:41
  • @PranayJaiswal, yes. Nov 29, 2018 at 12:42
  • Also can you check if you have provided Access to Class "GSTAR_LGHT_CTRL" to community user profile? Nov 29, 2018 at 12:43
  • @PranayJaiswal Yup. That profile has access. Nov 29, 2018 at 12:47
  • It should work, Its very strange. Can you remove init handler in your code, save and then try refreshing the community? Nov 29, 2018 at 12:51

1 Answer 1

4

Check the objects referred in component by the Community site User have access to that Object in Profile Settings. If not, the component won't be displayed.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .