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
Matt FolgerMatt Folger 

assigning visualforce pages to pagelayouts

This might to the stupiest question I've ever asked (or the most genius) but is there a way to assign a VF page DIRECTLY to a user page-layout under the custom object settings?  I could have swore that I saw how to do this at some point.  (And not just creating a regular page-layout and having the VF page in that strange windowed mode.  
Browsed around for half an hour, but could only find where you can assign VF pages to tabs.  If I want to create a different VF for each user then do I have to assign those to individual tabs?  Seems like that would be kind of silly.

Best Answer chosen by Matt Folger
Matt FolgerMatt Folger
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AguSIAS

All Answers

CheyneCheyne
You can add a visualforce page to a page layout, but the page has to use that object's standard controller. For example, to add a page to a User page layout, you would need to define the page this way:

<apex:page standardController="User">
   content...
</apex:page>
Matt FolgerMatt Folger
https://developer.salesforce.com/forums/ForumsMain?id=906F0000000AguSIAS
This was selected as the best answer