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
Scott.MScott.M 

Display $Organization Fields in Sites Page

Is it possible to display $Organization fields in a sites Visualforce page. For example most organizations would probably like to display their address somewhere on their site, is possible to access the salesforce organization fields for this purpose?

Best Answer chosen by Admin (Salesforce Developers) 
Scott.MScott.M
Thanks,

I know I can use those variables in visualforce pages. The problem I'm running into is that they aren't all accessible to the public sites, for example:

{!$Organization.City} produces an error
{!$Organization.Address} produces an error
{!$Organization.PostalCode} displays fine

Do you know where I set the permissions for these variables ?


Message Edited by Scott.M on 11-24-2008 01:10 PM

All Answers

melioratormeliorator
See Global Vaiables in the VF Documentation
For example: {!$Organization.Street}


melioratormeliorator
Yes - I just tested it.

Adding {!$Organization.Street}to a Sitespages works
.

Scott.MScott.M
Thanks,

I know I can use those variables in visualforce pages. The problem I'm running into is that they aren't all accessible to the public sites, for example:

{!$Organization.City} produces an error
{!$Organization.Address} produces an error
{!$Organization.PostalCode} displays fine

Do you know where I set the permissions for these variables ?


Message Edited by Scott.M on 11-24-2008 01:10 PM
This was selected as the best answer
Scott.MScott.M
You're right, Street, City, State, PostalCode and Country work. Thanks!