Questions tagged [lightning-community]

This tag refers to lightning components in the context of building communities using predefined templates (Koa, Kokua, Customer Service (Napili), and Aloha).

Filter by
Sorted by
Tagged with
17
votes
3answers
41k views

Is it posible to add iframe directly in lightning components?

Is it possible to add iframe directly in a lightning component as below to visible in community sites ? <aura:component implements="forceCommunity:availableForAllPageTypes" access="global" > ...
12
votes
0answers
3k views

Debugging Lightning Components worse in Communities in Winter 19? [NoErrorObjectAvailable] Script error

Debugging little javascript errors has become a nightmare (again.. feel like this is how it was a year ago and earlier). Simple errors it seems, like referencing a controller method that does not ...
8
votes
1answer
6k views

Get RecordId in LWC From Community Page

I'm trying to make a component in my community be able to pull in the record Id. I followed the information in this question: LWC Community recordId undefined And this documentation: https://...
8
votes
2answers
8k views

Can lightning:navigation be used in Communities

I am trying to implement a navigation mechanism for my community So I am trying to implement the new lightning:navigation component. This is my component - main: MARKUP <aura:component ...
8
votes
1answer
7k views

Lightning Web Component use Publish-Subscribe event in Community cloud

How can we use publish-subscriber event pattern in Community Cloud using lightining web component. I have drag-and-drop two Lightining Web Component(LWC) in a community page. On click on first ...
8
votes
1answer
583 views

Winter 18 Community - all custom components disappeared!

On my sandbox I have winter 18 now. I have played around to see all new community features, and suddenly I realize that the component list does not have any custom components: As you can see - no ...
7
votes
1answer
4k views

Lightning:recordForm cancel button unresponsive

I'm building out some community features and one of them is like a related list with a new button. When the user presses the new button, I am launching a modal window with another custom component ...
7
votes
1answer
1k views

Use LightningStylesheets=true on Lightning Community

We are developing a new Lightning Community to replace our Partner Community. However, when we use our visualforce pages with LightningStylesheets=true on the Lightning Community, the Lightning ...
7
votes
1answer
180 views

Record Type description not shown when creating a record in Lightning Community

I created an object with record types and put a description on the record types. This works as expected when I am creating the record as an Internal User and the description is displayed appropriately....
7
votes
4answers
2k views

Google Tag Manager and Lightning Community and Components

I've managed to import the Google Tag Manager code into the using the lightning community settings tab. This loads perfectly fine and I can see the 'preview' window for google tag manager. <!-- ...
7
votes
1answer
2k views

Google Analytics for Communities

It sounds like a patch was released that allows us to create a lightning component that can load up google analytics javascript. https://www.lightningdesignsystem.com/release-notes/ Has anyone had ...
7
votes
2answers
879 views

Search By Data Category

We have implemented the Napili template for our Customer Community. We have many articles with associated categories, and have added Category/Product Tiles to the main page. You can click a tile and ...
6
votes
2answers
7k views

LWC Community recordId undefined

I am very new to Salesforce and I am stuck using LWC with communities. The problem is simple: I generated my record list and when I click on the record I would like to access the selected record ...
6
votes
1answer
293 views

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

I'm a volunteer developer working with a non-profit to help them implement a "donor account" functionality to let their donors view their past contributions and projects they've contributed to. The ...
6
votes
1answer
2k views

Community Self-Registration doesn't appear to be calling LightningSelfRegisterController

I am trying to setup Community Self-Registration on a Lightning Community with a modification to use an existing account and contact vs creating a new contact and using the default account. After ...
6
votes
1answer
180 views

How can sfdx force:community:create be used to setup a Community in Continuous Integration?

These SFDX community commands are available, but on my first try just running these commands: sfdx force:community:create --name Portal --templatename 'My Template' --urlpathprefix portal sfdx force:...
6
votes
1answer
1k views

Communities Lightning - force:hasSObjectName doesn't work, yet force:hasRecordId does?

I'm in a single component. It implements the following: <aura:component implements=" flexipage:availableForRecordHome, forceCommunity:availableForAllPageTypes, force:hasRecordId, force:...
6
votes
0answers
274 views

Enterprise edition Scratch Org with Customer Community Licenses

Looking to understand whether it is possible to get Customer Community licenses in an Enterprise Edition Scratch Org. Scratch Org definition I tried to use for this was the following: Scratch Org ...
6
votes
0answers
4k views

System.SetPassword During User Creation Sets Password But User Cannot Login?

Background: We've created a pseudo-single-sign-on integration between our external cloud program and our Salesforce environment, allowing our users to log in to our Lightning Community Site via a ...
5
votes
2answers
4k views

Hide My Account in Napili Community

I built a Community with the Napili Template. Now I want to hide "My Profile" and "My Account" (under "Home") from the "Profile Header" component's picklist. How can I do that? I searched a solution ...
5
votes
2answers
358 views

Can Lightning Communities have sub-pages?

So the current iteration of my website contains several sub-pages on the home page. Navigating from Home, they can go to www.website.com/Home to www.website.com/Home/Directory or www.website.com/Home/...
5
votes
3answers
9k views

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

We're querying ContentDocumentLink for a list of documents related to a specific object record that the user has access to, and attempting to create a link for the community user to download that ...
5
votes
1answer
288 views

Bug with parser in lightning bundle definition

If you are trying to define a regex in a helper for a lightning component for example and you try to do something like this simple regex to match a single /: var myRegex = /\//; or var myRegex = ...
5
votes
2answers
3k views

How can a Lightning component be aware of the navigation in a Lightning community?

I want to build a component that can ideally live inside the Napili community template header. This component has to trigger some code whenever there is a navigation occuring in the community. I ...
5
votes
1answer
1k views

Not able to set value for Lightning:inputField field if it's manually modified from UI

I am facing issue with Lightning:inputField with lightning:recordEditForm that when I am trying to programatically change the value of any field I am able to do only if user is not modifying that ...
5
votes
3answers
1k views

Show communities spinner (in Napili) via custom lightning component

When you change pages in the Napili template, there's a spinner that displays. It's a white rectangular box with three animated dots. Is there an event I can fire through a lightning component that ...
5
votes
1answer
2k views

force:refreshView not refreshing Related List - Single

On a record detail page for communities (created in Builder) we have a few custom Lightning Components as well as a few Related List - Single standard components. One of the Related List - Single ...
5
votes
0answers
49 views

How to force cache refresh on community when releasing to production?

We have a community composed of multiple LWC. We are planning to release a big update in our production environment. When testing in other environments, some testers who had used the community ...
5
votes
0answers
374 views

What is a strategy for SEO since URL Rewriting in Lightning Community is not possible?

The Salesforce Documentation states that URL Rewriting is not supported in Lightning Communities: Is URL rewriting for creating custom vanity URLs supported? No, URL rewriting isn’t supported ...
5
votes
0answers
177 views

How to update an exported Lightning Community Template

I have a managed package containing an exported Lightning Community Template. I would like to add a new page/ change an existing page on the template. When I try to re-export, it says that the name ...
5
votes
2answers
5k views

Invalid page in communities

FYI, We tried to navigate to VF page from lightning component in community using navigateToURL. Logged in user as System Administrator. But navigation failed and showing "Invalid page" error. Here ...
5
votes
1answer
501 views

React app no longer loading with <ltng> component

As SF support for third party frameworks in communities was poor we decided to implement it using the component like so <ltng:require scripts="{!$Resource.react_app + '/www/js/main.js'}" ...
5
votes
1answer
284 views

Rendering order in Lightning Community

I'm working on a very styled Lightning Community (we're using Napili, but with a custom Theme, custom Layouts, custom CSS) and one thing which looks odd is the rendering order when you load a page. ...
5
votes
1answer
4k views

Deploy/retrieve lightning community page variations with metadata API?

I could not find an answer to this question in the documentation or by looking here. I have built a page variation in my lightning community, and then exported it. I am fine including that in a ...
4
votes
2answers
1k views

Lightning Community Does Not Support pubsub for Lightning Web Components?

Has anyone successfully used the pubsub module from lwc-recipes to enable inter-component communication in a Lightning Community? The registerListener function in the pubsub module throws an error ...
4
votes
1answer
6k views

SLDS lightning card margin issue

When lightning cards render, the first one seems to always be missaligned at the top no matter what. (this is obviously fixable with CSS). I used dymamic rendering, standard lightning:Card component ...
4
votes
1answer
3k views

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

I have a community in Production-Org up and running. It's a Lightning Community based on Napili-Template the Production Community URL is https://MYDOMAIN.force.com/Community/s/ Now I've spun a new ...
4
votes
2answers
4k views

Embedded Service Chat component in community - using “Snippet Settings File” javascript to override pre-chat file is not working

I am using chat (what was called live agent) and I am using the client side inside a Salesforce community - As explained here. I am doing that with the Embedded Service Chat component in the ...
4
votes
2answers
5k views

LWC download PDF file

I use LWC components in Customer Community. There is datatable component with records and I implemented the function to export selected records in .csv and .pdf. csv works fine, but I experience the ...
4
votes
2answers
1k views

Lightning rerendering, inheritance, and forceCommunity:navigationMenuBase

I've been working on a heavily customised Lightning Community where a lot of the UI effects are achieved using Javascript supplied by a design agency. These are included in the Lightning Community by ...
4
votes
4answers
9k views

Community Workspaces and Builder are not available

This is a Summer '17 Developer org. I have a Napili Community I created this week called "bikes." This morning I log into my org and see that the Builder and Workspaces links are not available and ...
4
votes
2answers
1k views

Conditional lightning components rendering in community

We have a lightning community for partner registrations with users from multiple profile types. We need to change the contents of the Home page based on the current logged in user. Currently I'm doing ...
4
votes
1answer
1k views

Overridden standard “New” button is not showing in community

We have one object whose standard "New" button has been overridden with visualforce page. It's working fine in Salesforce classic. I can see "New" button in related lists. In lightning community, i ...
4
votes
1answer
81 views

Context persistence in complex Lightning apps

Lightning components enforces a relatively strict encapsulation of the individual components which makes it difficult to build more complex applications while still aiming for modularity. In my ...
4
votes
1answer
699 views

View override does not work in partner community

I have a lightning component that overrides the view action on Contact and redirects the user to the Account detail page. It works well in Lightning Experience and Salesforce1 mobile app but does not ...
4
votes
0answers
43 views

Are fully custom SLDS themes possible in communities?

Bootstrap has a "themes" mechanism where a HTML page using the Bootstrap class names can be presented using many different colour schemes, fonts, spacing etc. For example: or and it is ...
4
votes
0answers
500 views

adding custom components to Community page header w/ Jepson theme

We would like to add a custom lightning component (LWC) to the header of our Community, so that it shows up on all the community pages. We have done this in the past w/ the older Customer Account ...
4
votes
0answers
40 views

Are communities “Comfy” or “Compact” by default?

This Density Setting drives the sizes of the var SLDS classes e.g.: Class Name Comfy Value Compact Value slds-var-p-around_xxx-small 0.125rem 0.125rem slds-var-p-around_xx-small 0....
4
votes
0answers
586 views

LWC: Add a region in custom community theme

I would like to add a region in my custom community theme. For now I am only able to add my LWC components in the body area and would like to know how I can declare regions in my theme to accept LWC (...
4
votes
1answer
1k views

$A.createComponent with does not work in the community after Spring 19 release

I have the issue but cannot understand what is wrong, hope you will help me here. There is the community with custom lightning Register component. When you fill some basic info about the user you ...

1
2 3 4 5
11