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
KrishSinghKrishSingh 

Enable Sites

How to enable sites in my organisation?

Best Answer chosen by Admin (Salesforce Developers) 
Ankit AroraAnkit Arora

To display the page you need to give access, for this :

 

Go To your site > there you can see Site Visualforce Pages section > Edit it and select your custom visualforce page.

 

After saving try hitting your site, and let me know if you still get any error.

 

 

Thanks
Ankit Arora

 

All Answers

Ankit AroraAnkit Arora

This is bit simple, Goto > Setup > AppSetup > Develop > Sites > Create your site here.

 

Make sure that you give some logical name as this name can not be change later.

 

 

Thanks
Ankit Arora

 

KrishSinghKrishSingh

Thank you Ankit_Arora for your quick reply. I have created site as you suggested, now I have a custom visualforce page name DisplayAccount. I want to show this when user hits my site, how is this possible?

Ankit AroraAnkit Arora

Go to your site and click edit > Now Select your visualforce page from lookup in "Active Site Home Page" > Save.

 

Now when you hit the site it will display your page.

 

 

Thanks
Ankit Arora

 

KrishSinghKrishSingh

I did the same and it is giving me error INSUFFICIENT PREVELAGES, what is this?

Ankit AroraAnkit Arora

To display the page you need to give access, for this :

 

Go To your site > there you can see Site Visualforce Pages section > Edit it and select your custom visualforce page.

 

After saving try hitting your site, and let me know if you still get any error.

 

 

Thanks
Ankit Arora

 

This was selected as the best answer
KrishSinghKrishSingh

Thanks Ankit !!!!

Ankit AroraAnkit Arora

Your most welcome :)

 

 

Thanks
Ankit Arora

 

ssaikiassaikia

Can someone tell me why the "Site" option is not available when I go to "My Name > Setup > Develop ... " ?

 

 

PK PatilPK Patil

Hi All,

 

I also faced the same issue. Please let me know whether the 'Site' is available for Force.com light version or not. I have registered for the trial org, but could not find the 'Site' option in Setup-->Develop.

 

Please help.

 

Thanks,

PK