14

Yes, you have to handle it differently. For LWC in the community we have to edit the configuration file named as file—<component>.js-meta.xml ** To make your component available in the Components tab in Community Builder, define lightningCommunity__Page in targets. Without this tag, your component can’t appear in Community Builder. ** Config ...


11

At this point only attributes that are supported are String , boolean and int . So this is how the design file will look <design:component> <design:attribute name="SearchString" label="Search" description="Please add Search merge variable" /> <design:attribute name="isValid" label="Valid" description="Checkbox" /> </design:...


8

I have been trying to do this and one thing I have discovered is the site.com metadata is a binary package .So technically yes if you have a github repository for every release you can maintain certain metadata that are community related in your Github repo . The main metadata components that are community specific that I extracted are as below <?xml ...


8

I have made a blog about how to resolve this issue without having to add a design attribute. Link: http://kevansfdc.blogspot.com/2017/02/does-lightning-component-know-if-it-is.html The solution I propose is to use a aura enabled method which return whether you are in a site context using the Site class that come natively with Salesforce. @AuraEnabled ...


7

Alright, so based off the comment exchange we had, I'm going to recommend a little guide to the SSL Chains as they work when trying to import them on a custom domain. So when you look at the cert chain, most of the time you will see it with its full path. The interesting thing with this is that if you already have the root certificate on your computer and ...


7

You would normally upload a ZIP file, and use it in the manner described in the docs: import TRAILHEAD_CHARACTERS from '@salesforce/resourceUrl/trailhead_characters'; // ... einsteinUrl = TRAILHEAD_CHARACTERS + '/images/einstein.png'; Loading a dynamic resource name directly is not supported; this is because the compiler will verify the resource name ...


6

The design:component currently supports only Boolean,Strings,Integer and the picklist values . The multipicker is not supported and hence the best possible solution would be to allow user to enter as comma separated or colon separated values and write javascript code to generate an array by using split function . The other alternative is obviously build ...


5

Site.com will be completely separate from the community builder going forward infact from Spring 16 release .Community builder is the future The community builder now has more flexibility to build pages .Lets take a look at possible options now using Napili to sort of completely replace UI 1)You can create your own lightning template page .It can be ...


5

I think the error lies in these lines var action = component.get("c.account"); action.setParams({ "account": account }); try changing it to var action = component.get("c.saveAccount"); var account = component.get("v.account"); action.setParams({"account": account}); as I'm sure you know, the action needs to reference an AuraEnabled controller method, ...


5

As for now, it looks like the only option is to iframe the Visualforce page in a component. If on Napili template, the src of the iFrame should be append by '..' as follow: <iframe src="../apex/MyVFPage" /> Keep in mind that this is a workaround (maybe even a hack), so be aware that it might be broken in the future, e. g. like it's going on with ...


5

Take a look at loading external js and CSS in lightning: https://developer.salesforce.com/blogs/developer-relations/2015/05/loading-external-js-css-libraries-lightning-components.html Updated component code: <aura:component implements="forceCommunity:availableForAllPageTypes"> <ltng:require styles="/resource/bootstrapcss" scripts="/resource/...


5

Your approach of a 'simple Hybrid App that sends you to the Community Login page' is the right path here. As for your other concerns but I'm concerned that Locker Service will cause a problem with the Cordova integration layer. You'll essentially be building what's a remote-hybrid app so the community would be loaded in a WebView container. Based on ...


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

using noConflict() to manage multiple jQuery versions. I have no idea if this is the recommended way but it works for me. Example fiddle using versions 1.11 and 1.52 and the plugin Chosen which only works with versions 1.4+ <script src="/sfsites/assets/Scripts/jquery/jquery.js"></script> // v1.5.2 <script src="https://ajax.googleapis.com/...


4

I'll try to answer this question in part by adding some historical context and also by framing it in terms of User context and an evolving Lightning framework. The answer to your question isn't a simple answer that only involves a single context. First, as we all are hopefully aware, the Lightning framework itself is still evolving and isn't completely ...


4

On the same page, in a community you'd be within the same domain, making your components part of the same application event level access, even if you didn't define them as part of the same application. You could of course define ExternalEvent Handlers for the "window" but that shouldn't be necessary. See the Advanced Events Example for more on this topic.


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

excellent post and I am sorry to see that you had to spend so much time on this. Known issue and already tracked with bug W-3214759 Live Agent Chat is blocked in Community Templates with Locker Service. The programming mode of including a global scoped library such as deployment.js - not into the component using ltng:require - is not going to work. ...


4

We ended up going for the attribute/property editor route. Component: <aura:attribute name="environmentType" type="String" description="This variable is used to indicate which environment this component is displayed on, f.i. community vs standard lightning" /> Design file: <design:attribute name="environmentType" label="Environment Type" ...


4

This is because "opportunity" icon belongs to standard set, "moneybag" is a part of utility set, change "standard" to "utility". "custom17" belongs to custom icons category. The easiest way to troubleshoot such things is to download SLDS static resource zip file (after install it become available), unzip it and browse directories with icons. To answer ...


4

According to the Lightning Components Developer Guide, this functionality requires that the target component's access attribute be set to "global". It also notes that it is only available in Lightning Experience and Salesforce1. So it's not yet available for Communities. If you try it outside of a community, you may find that what you have is working. That ...


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

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

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.


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

You can implement multiple intefaces for your lightning component and that should allow you to use Single component built everywhere (except for lightning out which requires another app to declare dependencies ). Here is what I have been doing to use components across everything . <aura:component implements="force:appHostable,flexipage:...


3

Sadly this is a gap in the Winter16 release. Some of the out-of-the-box pages, like Search, cannot be created with a different layout. In Spring16, not only will you be able to do this, you will be able to change the layout after its creation using a new Change Layout feature. In addition to this, you will be able to create your own layouts too (via ...


3

This is confirmed by Salesforce permier+ support as a bug. Fix has no ETA yet. As a consequence together with How to render the corresponding field-label automatically in Lightning? IMHO you can't use Lightning for complex I18n/L10n scenarios yet. This has been recognized as a Bug at our end and currently an investigation has been raised to fix this....


3

You will need to use navigate lightning function to navigate to detail . navigateToRecord : function (component, event, helper) { var navEvt = $A.get("e.force:navigateToSObject"); navEvt.setParams({ "recordId": "00QB0000000ybNX" }); navEvt.fire(); } Also note that you can redirect to any URL with a NavigateToURL event ({ navigate : function(...


3

You can add CSS frameworks to the template by editing the HTML Head Markup of the template in the community builder. Shown below. Go to Community Builder -> Settings -> Advanced -> Edit Head Markup Once You Click the Edit Head Markup Button, you will get a popup like shown in the image below where you can add CSS frameworks and other libraries just ...


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