6

I came across this site and wanted my own page to be publicly view-able without any logins. How can I do this?

Thanks
MnZ

11

Easy! After creating your Visualforce page:

  1. go to Setup > Develop > Sites,

  2. register your Force.com subdomain name,

  3. create a new Force.com Site

  4. next to 'Site Visualforce Pages' click Edit

  5. add your page to the list of Enabled Visualforce Pages

  • I tried this but as a developer I guess I can't create any more sites nor delete any. Does that mean I need to create another account to try it out ? Anyway I'm accepting your answer.Thanks :) – MnZ Dec 18 '13 at 11:36
  • 1
    Sounds like you already have one set up :-) use that? Or just create another Developer Edition account and drop a new Site in there. – bigassforce Dec 18 '13 at 11:48
  • I added my page to my site. It is saying "Authorization Required You must first log in or register before accessing this page. If you have forgotten your password, click Forgot Password to reset it." – MnZ Dec 18 '13 at 13:07
  • 1
    D'oh! Go to Setup > Monitoring > Debug Logs, create one for Site Guest User and look for anything interesting. If that doesn't yield and leads, maybe raise a new question showing the source of your Page, Controller and any Extensions. – bigassforce Dec 18 '13 at 13:26
  • 1
    custom object permission was required. Solved ! – MnZ Dec 18 '13 at 13:28
3

You need to go to your site, click on the name and click edit on the "Site Visualforce Pages" section, add the page to the site.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.