23 votes
Accepted

Get RecordId in LWC From Community Page

Apparently Salesforce is not clever enough to understand when you put in {!recordId} as a default value. Removing the default value and setting the property in the community fixed the issue. <...
user avatar
  • 9,141
20 votes
Accepted

LWC Community recordId undefined

From docs, you have to add <target>lightning__RecordPage</target> in the lwc component meta, for it to accept recordId from the detail page. <targets> <target>...
user avatar
14 votes
Accepted

Can lightning:navigation be used in Communities

lightning:navigation is not supported in communities .Take a look at Summer18 release notes here that clearly mentions below These resources aren’t supported in other containers, such as Lightning ...
user avatar
11 votes
Accepted

Is it posible to add iframe directly in lightning components?

Its definitely possible to use an iframe inside the lightning component .The out of box Visualforce component also internally just iframes the Visualforce inside the lightning component .Even the new ...
user avatar
10 votes
Accepted

Lightning Community Does Not Support pubsub for Lightning Web Components?

The pub-sub module checks for page references when firing events, so that the event is scoped and only in the current page. In Communities, we actually now support lightning-navigation as of Spring '...
user avatar
  • 461
9 votes
Accepted

Hide My Account in Napili Community

If you select the appropriate scope in your CSS, you can hide options in the Profile Header component: For the profile menu option: .profile.uiMenuItem{ display: none; } You can modify the CSS ...
user avatar
  • 19.4k
9 votes

Is it posible to add iframe directly in lightning components?

Here is an example of embedding an iframe in a Lightning Component: https://github.com/nikitakarpenkov/iframe-lightning-component The component itself is in the IframeComponent.cmp file: https://...
user avatar
  • 245
9 votes
Accepted

Lightning Web Component use Publish-Subscribe event in Community cloud

The pub-sub module checks for page references when firing events, so that the event is scoped and only in the current page. In Communities, we do support lightning-navigation as of Spring '19: http://...
user avatar
  • 461
7 votes

custom component not showing up in community builder

Make sure the component is available for communities by adding implements="forceCommunity:availableForAllPageTypes" to https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/...
user avatar
  • 16.6k
7 votes

iframe'd vf page fails in Lightning component in Community page

Answering my own question, in case it's useful to someone in the future. It turns out that the iframe issue was a red herring: the key point was the code 302 in the URL, which indicated a redirect ...
user avatar
7 votes
Accepted

SLDS lightning card margin issue

The cards should be in their own layout boxes (instead of being the layout boxes), and should not be floating. Elements that restrict size changes (e.g. slds-size_1-of-3) should be wrapped around ...
user avatar
  • 440k
6 votes

Is it posible to add iframe directly in lightning components?

Additional clarification for "visible in community sites". The iframe src needs to be dynamic if the page will be visible in both standard Salesforce as well as a Lightning Community. This is ...
user avatar
  • 333
6 votes
Accepted

Lightning:recordForm cancel button unresponsive

try to add oncancel event in your component. <lightning:recordForm objectApiName="Custom_Object__c" recordTypeId="{!v.Applicant.recordTypeId}" ...
user avatar
  • 813
6 votes

How to generate a download URL for a ContentDocument in Lightning Community

The download link on the file previewer in a community generates a link of this format. It should work fine for your scenario with the exception of not being a best practice to hardcode it like this....
user avatar
  • 22.4k
6 votes

Help setting up my development environment for building a custom community for existing org

Disclosure: I am on the CumulusCI team at Salesforce.org and am one of the release engineers for the Nonprofit Success Pack. General NPSP Guidance Because the Nonprofit Success Pack is a complex ...
user avatar
  • 87.4k
6 votes
Accepted

How do I package an upgradable Experience Builder Site?

This seems so simple on the face of it, but ends up quite difficult to achieve. I did manage, and on the way learned quite a bit. The main learning points: You have to have just the right metadata ...
user avatar
  • 28.2k
5 votes
Accepted

Accessing aura components after enabling the locker services

if PickupLocationtooltip is a separate component, then you won't be able to access it's internals with Locker Service enabled. What you will need to do to perform actions on this component is to ...
user avatar
5 votes
Accepted

Napili Community: delpoy navigation menu

Step 3 of the documentation/blog post you linked: Step 3: Go to the Community Management console and update your administrative settings, topics, moderation criteria, etc. as these do not carry over ...
user avatar
  • 19.4k
5 votes
Accepted

Why a Community in Sandbox shows only "URL No Longer Exists"?

It turned out, that waiting has helped. I've tried it the first time after about 12 hours after the Sandbox has become available. Then I got the error. Then I republished. Still got the error. 3 ...
user avatar
  • 33.7k
5 votes
Accepted

Bug with parser in lightning bundle definition

For my usecase, I was able to find a workaround by doing a regex from a string instead of raw like so : var myWorkingRegex = new RegExp('/'); since you do not need to bound your regexes in a string ...
user avatar
5 votes
Accepted

Use LightningStylesheets=true on Lightning Community

LightningStylesheets=true has limitations and will try to style your page as close as it can to SLDS, however, it does not support all apex:tags, I would suggest you read apex:slds vs ...
user avatar
  • 19.4k
5 votes
Accepted

How to customize the record related list in lightning community

Not all standard components are available in Community Builder as available in App Builder. It also depends on the type of page you are creating. Refer to below excerpt from the documentation: The ...
user avatar
  • 29.3k
5 votes

Which SObjects represent Native CMS Content in Communities and can they be accessed?

I am also using CMS Content (Salesforce CMS) in Lightning Community. Unfortunately, for now, it has very limited customization options and it's not yet supported by APIs. For all available options, ...
user avatar
  • 4,157
5 votes
Accepted

Can Lightning Communities have sub-pages?

Until Winter 21 Release, you could not add the URL level(s) (depth) of custom standard pages. When you try to do that you will get the next error Include only alphanumeric characters and hyphens . ...
user avatar
5 votes

How can I force a static resource to reload in a Community site?

The naming pattern that URLFOR generates includes a timestamp that you can emulate: /sfsites/c/resource/1604909594818/my-static-resource/css/my-stylesheet.css On the client-side you can use new Date()...
user avatar
  • 131k
4 votes
Accepted

Bootstrap CSS messing up community template

You can de-scope the bootstrap from entire Napili Template. Instead apply for specific sections. This can be done using Less.js .bootstrap-div { //put the bootstrap @includes here } so <...
user avatar
  • 22.3k
4 votes

How to set Title for Koa Community Template Winter '16

According to Salesforce Support this functionality is by design and there is no known workaround. I recommend voting for the following Idea and hope that Salesforce takes action: https://success....
user avatar
  • 41
4 votes

Community Workspaces and Builder are not available

Per @Dave Humm's original comment, I discovered that it's possible to remove your access to a Community Workspace | Builder links in Administration from inside the portal by removing the System ...
user avatar
4 votes
Accepted

Forgot Username Lightning Component

Whenever you create a Community(Napili) on the Salesforce for the first time, some custom sample lightning components(with standard functionality) will be added/installed. We just need to make simple ...
user avatar
  • 1,490
4 votes
Accepted

how to logout from lightning community

Please use below code to redirect to community login page : window.location.replace("<community-domain>/secur/logout.jsp?retUrl=<redirect-URL>"); Eg: window.location.replace("/...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible