Hot answers tagged

9

Lightning framework is evolving and Salesforce adds new features in each release. I see that documentation suggest that you might use Lightning Community Builder to use Lightning Components to modify ChangePassword page. Also it is suggested here that The Community Builder is like the Lightning App Builder, except that it’s used to design and build ...


6

You should be able to use lightning:icon in your component, as follows: <lightning:icon iconName="utility:notification" /> This is also in the standard SLDS library if you're using the static resource version of SLDS, located under utility/notification.png or the svg version at /assets/icons/utility-sprite/svg/symbols.svg#notification


6

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 under the branding options However, this will affect all your users. If you would prefer this to change based on profile (your admins might want to be able to ...


6

Visualforce list buttons are not supported in Communities. https://help.salesforce.com/articleView?id=community_builder_use_visualforce.htm&type=0


5

You will have to set up data categories first Provide access to your data categories You will then navigate to the Navigational Topics and associate the Topics with articles Also make sure your article types are visible to guest as well as community users


5

For the Favicon to work, I had to upload my image to the orgs assets library: Under Branding>"Select an image to generate a palette" : Only then was I able to reference my icon, which I had to upload as a 16x16 png image. Finally, I was able to reference it using the file-asset's relative path as follows: Notice that the icon name when I reference it has ...


5

Alright, with the guidance from @Mohith, I was able to find a work around for my issue. Here is what I made changes to his code which reloads the complete page, rather refresh the part of the page(reload itself, seems dynamic refresh) based on time interval. Thanks to Lightning Component as well. Lightning Component: <aura:component implements="...


4

I had to get on a call with Salesforce Engineer to really understand this .This is what we concluded We can create a design file for the lightning components and use the same merge values as other components use on the page .In this case i can simple go to the Search detail page and check the standard context variable In the above screenshot I have ...


4

The entire Napili is based on Lightning Component Framework and all the events available on SF1 is also available inside the Napili template .Its just not well documented I believe . Here is a small code to help you with navigation inside Napili <ui:button aura:id="button" buttonTitle="Contact Support" label="Contact Support" press="{!c.navigate}" class=...


4

The exact term for this is known as "Managed Topics". You can use ConnectAPI namespace of Apex to fetch related Child Topics for a managed Topic System.debug(ConnectAPI.ManagedTopics.getManagedTopics('0DB90000000PBQt', ConnectApi.ManagedTopicType.Navigational)); Use the above to get hold of All Navigational Topics And now use the Id of the ManagedTopics ...


4

You can use sfdc:objects to specify a specific object; only objects that are specified will show the component: <design:component label="My Component"> <sfdc:objects> <sfdc:object>Contact</sfdc:object> </sfdc:objects> </design:component>


4

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 <div class="bootstrap-div"> Bootstrap works here </div> <div> No bootstrap </div>


4

UPDATE: Since Winter 17 forceCommunity:notifications https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/aura_compref_forceCommunity_notifications.htm#! Finally, I found that what I wanted is something like this : MARKUP <span class="counterLabelContainer" aura:id="divNotificationCount"> <span ...


4

Create a custom lightning component for communities to do this .You will need to ensure this component is part of every Napili lightning page that you want to refresh Here is a version of untested code but hoping it gets you going <aura:component implements="forceCommunity:availableForAllPageTypes" access="global"> <aura:handler name="init" ...


4

Re: ability to reference the Header Background image in the Customer Service (Napili) template If you need to reference the Header Background Image using the Customer Service (Napili) template the cleanest way to reference it is through this approach: 1) Create a defaultTokens bundle (or update your existing one) to include: <aura:tokens extends="...


4

Alright folks, I couldn't get this issue resolved here. So in my research, I found this issue as a Salesforce Known Issue which was opened two weeks prior to my post. As the fix was mentioned: SCHEDULED - SPRING '18, I have reached out to Salesforce to get this solved at least in my Org as this is a Standard functionality. Thanks to Salesforce, they guided ...


4

For Everyone who will need this in most recent version you can add this code in the css to hide the Home in the navigation Menu. .comm-navigation__list > li:first-child { display: none; visibility: hidden; }


4

The only real option is to create a page and embed the Visualforce page within it. That will allow it to be added to the navigation menu as a community page. The page would be a Standard page with 1 full width column. Then it can be set to have a Visualforce page in the content area. There will be a drop down of all the available VF pages After ...


4

I've solved that by developing my own Visualforce Wrapper Lightning Component. The basic concept is to create an iframe in the LC which displays the VF Page. Then the page is notifying the LC on resize about it's real height. This height I send using window.sendMessage to the hosting LC, which adapts the iframe so that they match. In the end it was a lot of ...


3

To update the background, in the branding editor, there should be an "edit" pencil or brush referring to "Edit CSS" from there you can change the background with appropriate css styling. for Ex. body { background: red; } You should see your "body" change color. Please refer to this documentation for further customizations. UPDATE (Witner '18): ...


3

Per the documentation JAVASCRIPT NEEDS The active tab has two markup requirements: The .slds-active class should be placed on the li with .tabs--{variant}__item. The corresponding .tabs--{variant}__content container receives .slds-show. Inactive .tabs--{variant}__content containers receive .slds-hide. When the user clicks a ...


3

Currently SalesForce does not have a UI to add inline images to a post, however you can do it using the API. Documentation: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/connectapi_examples_post_feed_element_richtext_inlineimage.htm You can always submit and Idea to the SalesForce Success Community. That is the best way for ...


3

I just ran into this issue and it seems that the orders object is not supported in the Napili template This is mentioned in their Spring '16 release guides - https://resources.docs.salesforce.com/200/latest/en-us/sfdc/pdf/community_templates.pdf


3

The best practice of using jquery with communities would be to use your script in the advanced editor inside Head and not to use any styles and scripts used by SFDC as that may change when we upgrade templates. Also make sure your jquery is stored inside the static resource of SFDC If you are using inside components use ltng:require tag as below <ltng:...


3

The Options that we see in the Select Post Destination is based on the Navigational Topics . You will need to add some Navigational Topics to see the Options there . Take a look at screenshot from one my sample orgs Here is good old blog from me on how to set these


3

This feature is delivered in the Spring'17 release: Customize Community Navigation with Nested Menu Items The new Menu Label type in the Navigation Menu component lets you create parent headings for your navigation menu and nest items underneath. Nested navigation menu Add a menu item, and set the type to Menu Label. Nest other menu ...


3

You can create a Custom Theme Layout which basically involves creating a lightning component, referenced here and add the New Theme Layout through the community Settings: You will then want to create a Page Variation which you can assign to different profiles referenced here Page variations allow you to specify what profiles access what page. From the ...


3

The community creates a site by default .Whenever you spin a new community a force.com site is automatically created by SFDC and linked in sandbox . In developer org sometimes you can create a site and it will automatically link to the community . The above screenshot shows for every community I have a site created and it has self registeration page ...


3

A couple of things, Your getCase method returns an object of type "case", But, you are setting the object to a String in the init method of your js Controller.Additionally, as N.B pointed out, you seem to be passing 2 arguments when your apex method saveCase is expecting only one argument of type case. Below is a refined version of your logic for your use-...


3

The record detail page aspect of the Napili Community is very confusing. Correct me if I am wrong but it looks like you created a set of record pages for Account. This gave you Account Detail, Account List, and Account Related List. Placing the Account Detail page as a top level link requires you to hardcode it to a direct Account Id by replacing :recordId ...


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