+ Start a Discussion
XactiumBenXactiumBen 

Cannot add related list in Sites page

I have an apex relatedList tag on one of my Sites pages which doesn't show up. 

If I load this up within Salesforce I see my related list no problem but when I try and access the same page from Sites I get the Authorisation Required page.  If I move my related list tag around my page then I always see it in Salesforce but in Sites I get a mixture of Authorisation Required and the page showing up but with no related list showing.  Any ideas?

Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent
here is an example:
http://sites.force.com/test?id=0013000000LMCuA

make sure you have the CRUD on the related object and FLS

All Answers

BulentBulent
Make sure you have the field level security and the object permissions set properly for the object that your related list is on. You need to check this on the public access settings page for your site.
XactiumBenXactiumBen
I have full permissions on the objects I want to access from my page (parent object and related list object) and my fields are all set to visible but I still cannot see my related list on my Sites page.

I am using a Site template, maybe this is interfering with the related list tag?
BulentBulent
here is an example:
http://sites.force.com/test?id=0013000000LMCuA

make sure you have the CRUD on the related object and FLS
This was selected as the best answer
XactiumBenXactiumBen
I still can't seem to get this to work.  I have given up and decided to create the related list myself using PageBlockTable element.  This seems to work really well, which confuses me even more since this must need correct security settings in the Sites profile.