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
IvarIvar 

Standard object icons accessibility

Hi all.

 

Can anyone tell me if I can reference or access the standard object icons (Account folder icon, Case bag icon, Contact card icon, etc.) from somewhere to use on a Visualforce page?

 

Edit: To explain further I am trying to build a Visualforce page that contains a mixed list of objects (Cases, Opportunities, etc.) and would like to be able to display the appropriate icon in front of each one, to visually specify their type.

 

Regards,

Ivar

Best Answer chosen by Admin (Salesforce Developers) 
IvarIvar

I found a hack past this by just digging into the html elements of a salesforce page and looking for stylesheet classes.

All Answers

Edwin VijayEdwin Vijay

As far as i know, you can use the images if you have your standardcontroller property set to that particular object.  Sectionheader will show the image automatically.

 

So, if you want multiple objects try using individual visualforce page for each object and using iframes to combine them all into one page.

IvarIvar

I found a hack past this by just digging into the html elements of a salesforce page and looking for stylesheet classes.

This was selected as the best answer