You need to sign in to do that
Don't have an account?
Different results on dev site than public site
I'm new to visualforce and I've make a basic page to learn it. I'm using standard controllers and no filters. My code below does exactly what I expect it to do, but when I publish the page to the public, 2 of my 4 test records are missing. Can anyone tell me why?
<apex:page showHeader="false" sidebar="false"
standardController="Opportunity" recordSetVar="listings">
<h1>Land Search</h1>
<apex:dataTable value="{!listings}" var="pitem" rowClasses="odd,even">
<apex:column headerValue="Listings">
<apex:outputText value="{!pitem.name}"/>
</apex:column>
<apex:column headerValue="Acres">
<apex:outputText value="{!pitem.Acres__c}"/>
</apex:column>
<apex:column headerValue="List Price">
<apex:outputText value="{!pitem.List_Price__c}"/>
</apex:column>
<apex:column headerValue="Comments">
<apex:outputText value="{!pitem.Public_Marketing_Comments__c}"/>
</apex:column>
</apex:dataTable>
</apex:page>
Try going to Setup > Security Controls > Field Accessibility > Choose the Object the fields belong to > View by Profile > choose the profile for your public site..
Then give the two fields that aren't showing up the same settings as the ones that are.
Good luck.