function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LakshmanLakshman 

Overriden Edit button with Visualforce page is not visible on community

Hi All,

I have overriden a custom object Edit/New button with Visualforce page to leverage some functionalities like adding text instruction on filling up the form, ajax functionality to fetch information based on coditions etc . However I cannot view the button on Community.

I am using Napili theme on community, I know it does not supports visuaforce but how can I add a lightning component  or something to override the records edit functionality. 

Could I create a custom Tab for viewing the record list using lightning component and then eventually will have to create Detail, New, View pages? How can we achieve it if its possible ? Looks lot of work and maintenance in future for this option.

Please help me on this. 
Mike.KatulkaMike.Katulka
If it helps, you can do a lightning component that uses an IFrame pointing to the visualforce page. The "Preview" feature will not work (at least in testin in the past) so you may think the iframe is broken, but run the full url to the community and see how it behaves.
Mike.KatulkaMike.Katulka
Full solution will one day be that you can override an object with more flexibility, so I've been told, safe harbor.  Like, profile based, or license or something like that.

This may also help for now, get back to the standard page in the community view which should yield in a lightning view/edit page: http://help.skuid.com/m/page-assignments-and-overrides/l/102550-how-do-i-get-back-to-a-standard-salesforce-layout-when-i-ve-already-overridden-it
LakshmanLakshman
Hi Mike,

Thanks for your inputs.
The problem is that when you override any objects View/Edit, the community Napili template doest show the buttons or our visualforce page. Building the complete functionality with lightning is lot of work, instead we might have to go for VF+Tabs template as we are finding the community templates are very complex if we have to do some customization on the object forms.

Do you have any code where you have overriden the header of community with login and logout link, logo and search ?

Thanks for your help on this.
Mike.KatulkaMike.Katulka
Hi Lakshman, That is a good move.  The new template/lighting community builder is not ready for full production use in many cases like this.  

We've done many tabs+VF instances instead.

Here are some links that should point you in the direction you need:
  • https://help.salesforce.com/HTViewHelpDoc?id=networks_customize_login.htm&language=en_US
  • https://developer.salesforce.com/docs/atlas.en-us.salesforce_communities_implementation.meta/salesforce_communities_implementation/networks_enable_global_header.htm
  • http://resources.docs.salesforce.com/200/17/en-us/sfdc/pdf/salesforce_communities_implementation.pdf
  • http://salesforce.stackexchange.com/questions/17054/customize-communities-login-page