You need to sign in to do that
Don't have an account?
Inconsistent output - Sites page vs internal VF page
We have run into an
inconsistency between the same page being served within the app
(c.na6.visual.force blah blah) and the live Sites page. Here is the
output followed by the code.... The page on the Sites URL is not
showing the related product (wine) Name...
https://c.na6.visual.force.com/apex/test [^] a0G80000001H0hHEAS ---- IX04RED750 a0G80000001HDntEAG ---- HL93CAB750 a0G80000001HDnpEAG ---- IX02CAB750 a0G80000001HDnoEAG ---- HL92CAB750 http://colgin.force.com/test [^] a0G80000001H0hHEAS ---- a0G80000001HDntEAG ---- a0G80000001HDnpEAG ---- a0G80000001HDnoEAG ---- |
The basic join is as follows:
[Select Wine__r.Id, Wine__r.Name, Id From Offering_Wine__c]
Wine__r.Name. Wine__r.Id
Here is the page which produces it (ugly test code obviously)
<apex:page cache="true" showHeader="false" sidebar="false" controller="testclass">
<br><br><br><br>
<apex:form >
<apex:commandButton action="{!invite_email}" value="Save" id="theButton"/>
</apex:form>
{!TestAcc.Id} ---- {!TestAcc.Wine__r.Name}
<br><br><br>
<apex:repeat value="{!TestAcc2}" var="Te">
{!Te.Id} ---- {!Te.Wine__r.Name}
<br/>
</apex:repeat>
NM-{!TestAcc3}
</apex:page>
Ideas? At first I suspected "Public Access Settings" but I don't believe that is it? They have read perms on all the objects involved.
All Answers
Jim,
site profile is not exposed in other places in the app by design. When you say you didn't restrict visibility when you created the object, it does not impact site public access settings.
We wanted to prevent users exposing fields without knowingly on the public site.
All the setup related to site needs to go via the public access settings