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
iskradeviskradev 

Force.com site not creates a page automatically

I created a Site and tried to visit a non-existent location with "apex" prefix in URL (so I could create a new Visualforce page). Instead of that: http://i.imgur.com/Zpux45O.png I see this: http://i.imgur.com/mW7l54c.png

 

I did enable the "Developer" checkbox in my account.

 

Another question is what's the difference between my first and second screenshots?

 

Yet another question, why are the records I'm trying to display on my Site not visible? I can see them if I visit https://c.na15.visual.force.com/apex/MyRecords but not when I visit https://blahblahname-developer-edition.na15.force.com/apex/MyRecords or https://blahblahname-developer-edition.na15.force.com/apex/MyRecords

 

I'm very confused.

Best Answer chosen by Admin (Salesforce Developers) 
Vinita_SFDCVinita_SFDC

Hello,

 

I understand that you have created a site using force.com sites.

 

The difference between first and second screenshots is that the first one is on a salesforce instance(na15) that is why you can create a VF page on that, while second screenshot is of a site. A site is for referring salesforce content, you can not do developments (either VF or apex) on a public site.

 

On your force.com site respective pages at (Setup|App setup|Develop|Sites|Click site name|Site VF pages and error page). FOr details please refer following document:

 

https://help.salesforce.com/HTViewHelpDoc?id=sites_overview.htm&language=en_US