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
Cherry ShenCherry Shen 

Visualforce pages access for community users

I have a website created mainly in Site.com, to complete more functions, I used force.com to create several VF pages, and also used "iframe" to embed them into my Site.com pages, the whole process works fine for admins, but not for community user accounts, they can't see visualforce pages content, I've enabled visualforce pages and Apex classes in the related profile setting, still can't work. Plus, I used https://c.cs14.visual.force.com/secur/logout.jsp to implement logout process, it works for admins, but not for community users as well. These two issues have a same access cause, right? Hope to get your answers soon. Thank you in advance.   
Best Answer chosen by Cherry Shen
Patcs_1Patcs_1
Hi Cherry

If your community uses any Prefix, then you have to use {!$site.Prefix} in your visualforce page. there might be problem with your URL. please check if you are able to access the visualforce page seprately as a partner user in salesforce. check whether the URL is working correctly.

Hope this helps!

Thanks

P.S : If this solves your problem, Please mark this as solution by selecting it as best answer.
 

All Answers

Patcs_1Patcs_1
Hi Cherry

If your community uses any Prefix, then you have to use {!$site.Prefix} in your visualforce page. there might be problem with your URL. please check if you are able to access the visualforce page seprately as a partner user in salesforce. check whether the URL is working correctly.

Hope this helps!

Thanks

P.S : If this solves your problem, Please mark this as solution by selecting it as best answer.
 
This was selected as the best answer
Cherry ShenCherry Shen
Hi @Patcs_1 ,

Sorry for the late reply, we don't have partner users, but community users, can they test it as well? Community users can't access my VF pages. My VF pages are all under the link "https://c.cs14.visual.force.com/apex/"; and our Site.com page link is under " https://sandbox-stromasystest.cs14.force.com/community/s/xxxxx ", is there anything I miss?