Skip to main content
그룹

Lightning Components for Communities

This is a group to collaborate with others who are building Lightning Components for Community templates.

#Salesforce CMS has helped turn many forums, portals, help centers, B2B Commerce storefronts, and other digital properties powered by #Experience Cloud into compelling digital experiences that keep customers coming back and buying more. And our standard CMS components are pretty powerful and flexible, making your site compelling and highly personalized. But there's plenty of room for organic innovation with CMS, and that's exactly what motivated @Frank Caron and me to release the new Salesforce CMS Component Starter Pack! And as of RIGHT NOW, the listing and source code are live and available to customers! 🆙

 

Get it here: https://appexchange.salesforce.com/appxListingDetail?listingId=a0N4V00000G6GZAUA3

 

The CMS Component Starter Pack has components that dynamically choose and display relevant CMS content on Experience Cloud pages:

  • ✅️  CMS Content for This Topic: Create dynamic “virtual collections” of CMS content on each Topic detail page in a community.
  • ✅️  CMS Content for This Record: Create a dynamic “virtual collection” of CMS content related to a particular record (Case, Account, custom object, etc) in a community.

These CMS components put hyper-relevant CMS content right where your users happen to be: working with records, browsing discussion topics, or searching for expertise.

 

The components also have flexibility designed in!

  • Use any CMS content type with a text or image node.
  • Configure CMS field mappings to display what you want.
  • Two collection formats today: Carousel and Grid/Strip.

And we’re not leaving DEVELOPERS out of the fun! These components are open-source, with full source code released under our Salesforce Labs GitHub account:

github.com/SalesforceLabs/SalesforceCMSComponentLibrary

 

We’re hoping this gives folks a great starting point for CMS-related Lightning Web Components in Experience Cloud!

 

@* Experience Cloud * @Lightning Components for Communities @Community Templates 

@Cesar Castro

댓글 2개
  1. 2021년 2월 17일 오전 8:51
    Way to go, Joe! You'll stop when you die (no hurry, hey!).
0/9000

Hello, everyone!

In the last week or so, some users are complaining about editing rich text fields on the communities. They just can't click the field and dive into editing (it looks normal, but not active).

We can't reproduce the issue on our orgs, as well we can't reproduce it with access to user's org. It seems the issue is connected with the user's environment (OS, browser, ...)

Have you met the problem?

Could you pass me to the solution or investigation of the core trigger?

@Lightning Components for Communities @* Experience Cloud *  @* Experience Cloud - Best Practices * 

댓글 13개
0/9000

Looking for any comments on an issue spent WAY too many hours on and it's a problem.

I essentially want a Guest User to be able to access random CMS information similar to:

  1. We have 10 Accounts.
  2. Guest user visits site and will review info on 1 of the 10 Accounts. The information reviewed is a CMS doc, so not accessible via lookup field.
  3. In Experience Cloud (EC) we have the 10 CMS docs for each account. That is the ONLY thing different in each EC page. There are other things to review for the Account that are pulled from the object, but we can populate those easily.

Options I see:

  1. We can put 10 CMS items on each page and conditionally render each one based on a user attribute. But this seems very ugly? No?  If not, what if it was 50 conditions? What is the max # of unique "render conditions" on a reasonable page?
  2. We can create 10 pages and put 1 on each page, which we do now, but are having a miserable time directing user to appropriate page. It's supposed to be random so do not want them selecting pages on a menu. We are doing this via Flow and an Apex random number class and redirect URL which technically works but it's a mess.
  3. Something else...which hopefully doesn't include a lot of Apex. Again these are Guest Users.

??? Thanks!

댓글 5개
  1. 2021년 1월 22일 오전 3:39

    So the only point I don't fully agree with is how you define hardcoding.

    Hardcoding is when you put an Id in code, and the only way to get that updated is with deployments.

    Putting an Id in a field on a custom object, I wouldn't consider hardcoding. It's a very common design as a matter of fact, and we use it on our own communities. It becomes a data maintenance item like other data that needs to be maintained, instead of an Id value in code that needs to be deployed every time it needs changing.

0/9000

Hi Everyone, 

I seek to add a WebRTC component in a lighting community. it is any component available? 

Thanks in advance,

댓글 1개
0/9000

Anyone know how to get a custom list view button to render appropriately in a lightning community?  It is set up to fire a screen flow, but it seems like it is taking me to a classic community UI instead of staying in the same UI of the lightning community.  Any help would be greatly appreciated!

댓글 1개
0/9000

Anyone created a twitter share component for knowledge articles displayed in an experience (community)? I can get the knowledge article title (1) and URL-Name (2) text to show in the twitter card text but the link preview title and description only shows metadata tags set in Builder > Settings > Advanced > Edit Header Markup.

 

I want to have the article title set dynamically based on the article title (1) and article summary (2) fields from the current knowledge article. The advice in this knowledge article didn't solve the issue - https://help.salesforce.com/articleView?id=000352967&language=en_US&mode=1&type=1. My understanding is that https://developer.salesforce.com/blogs/2018/01/advanced-seo-lightning-communities.html contradicts the first one in that page level tags "replace" instead of "augment global" meta tags. Any advice appreciated.

0/9000

Communities default language Overrides 302 Redirects?

Community Template: Customer Service

 

Hi all,

I'm trying to redirect guest users from a language where the relative URL path hitting communities is for instance..... /s/?language=ar_AE and redirect to .../s/?language=ar

I've attempted to setup a 302 redirect via the site.com studio > redirects; however, it seems the community default language trumps any redirect setting.  Is this because there is no language in Salesforce as in this case ar_AE; therefore, the default language takes precedence over a 302 redirect?

 

Any insight would be appreciated.

 

Thanks!

0/9000

Hi all,

we are using an external javascript library on a community. Actually we loaded the content of the javascript in a static resource (as documentation describes for jquery integration) . Unfortunately for some reason the 3rd party vendor expect to reload the content of the JDK so that they can address new features / bug fixing without release a new version of the file. There is a way to achieve this result such as using a CDN or reload the content of the static resource or some other suggested approach?

I also understand that this appoach is not really correct from security point of view because this represent an exception and let the ability to change the content of the javascript dynamically without any control on it, so that I would like to be sure to address in correct way.

 

Many thanks

Andrea 

 

UPDATE: assuming CSP configured, is possible to load the JS directly with:

<ltng:require scripts=”https://externalDomain/externalPathToJs/JsFileName.js” />

0/9000
1075590884 님이 Lightning Web Components에 글을 올렸습니다

Hi all. I'm struggling to call an Apex method imperatively from an LWC, passing an object. It's supposed to be so straightforward, that I cannot find any example, neither in the documentation, nor in the lwc recipes repo. But... When I call a method with the exact sObject I just received from an Apex call, I get an Error 500, no trace in the debug logs.

Going to investigate further, but any help welcome.

댓글 26개
  1. 2020년 10월 18일 오후 3:03
    Hello @Nikhil Karkra, with pleasure. I had to change quite a few things anyway, because it does not seem that Flows is able to pass a "deep object" (with few levels of parent records) to an lwc. But maybe I didn't check hard enough. And so far, the project has been moving too fast for me to try more. Connecting on LI.
0/9000

Hi all, 

I am trying to create a public community where I want people to fill in some details and use recapture to verify that it is not spam or from a bot. Is the best way to embed recapture code into a VF page?

thanks any suggestions would be great. 

댓글 3개
0/9000