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
Mike ArthurMike Arthur 

How can I mimic different page layouts in Visualforce?

I have inherited an org where, for various reasons, the Account page has been completely written in VIsualforce, field by field.

Now there is a situation where, had standard pages been used, we would use different page layouts for different profiles.

How is this best achieved in Visualforce?  Do I need to add a 'rendered = ' attribute to every field that is displayed?

Would a 'rendered = ' attribute within the pageBlock Section component control whether the entire section is displayed or not?

Many Thanks,
Mike.