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
ursmahiursmahi 

Can we use installed package visualforce pages in force.com sites

HI,

can we use installed package visualforce pages in force.com sites.

I have requirement like, I wanted to display few installed visualforce pages in Sites.can we archive this?

 

Thanks in advance......

 

Best,

Mahi

bob_buzzardbob_buzzard

That definitely works, as I've used it for my online testing app (see my signature for a link).  It should just be a matter of giving access to the managed Visualforce pages to the guest user profile associated with the site.

ursmahiursmahi

HI Bob,

Thanks for the courtesy reply 

I have given acess for pages but still i am unable to open

bob_buzzardbob_buzzard

Have you tried previewing as admin - it sounds like you might be hitting errors when rendering the pages.

ursmahiursmahi
Ya i tried ,but it showing' List has no rows for assignment to SObject'
but when I open page with in salesforce it`s working fine
bob_buzzardbob_buzzard

Have you given the guest user profile access to all of the objects that the page uses?

 

Also, does the guest user have visibility of the records - i.e. are they public or is the controller set to 'without sharing'?

ursmahiursmahi

I have  givien permission to all objects(read,create) for that guest profile.and class is public

bob_buzzardbob_buzzard

What about the sharing settings - is the guest user profile able to see the records you are retrieving?

ursmahiursmahi

Thanks Bob for all your cooperation
Finally, I have resolved this issue (problem is sharing settings only)