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
Praneeth IndragantiPraneeth Indraganti 

Visualforce Page with Lightning design in Napili template Limitation

Hi All,
We have the following scenario. 
We want to have classic pages look like lightning in Napili Template 
1. In our approach we added an attribute called lightningstylesheets=true for visualforce page with a hope that the page will be automatically rendered with lightning styles in community, there comes a road block with Salesforce -
We cannot use lightningstylesheets attribute in community
2. So as a work around we created a lightning app with the Visualforce embedded in it.
<aura:component implements="forceCommunity:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,lightning:actionOverride,forceCommunity:availableForAllPageTypes">
    <iframe src="https://xxxxx/apex/viewOrder?id=8011F0000009IbO" style="height:800px;width:1000px"/>
After doing this we tried overriding the Standard View functionality of Salesforce
Even though we have given the SampleComponent as the override in Lightning Experience it is not working.
3. Apart from the limitation we faced in point.2 there is also a limitation in passing parameters via url within community.
Below is the link of Salesforce Idea
Please suggest what is the best way to implement this.
Manish  ChoudhariManish Choudhari
Hi Praneeth,

Did you try "Lightning for visualforce" meaning including your lightning application in visualforce?
Check this

**Please mark this as best answer if this answers your query.**

Manish Choudhari
14x Certified Salesforce Architect
Certification link:
My Blog:
Youtube Channel: