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
JaredPHJaredPH 

Please help: Override standard page with 3 column standard page

I'm a real newbie with VisualForce. Is there an easy way to create a VF page that is exactly the same as an existing page layout except that the column count is 3 instead of the default 2? How would I call that page layout into the 3-column VF page?

 

Thanks for any help you can give!

Jake GmerekJake Gmerek

Three columns is possible but not simple

 

You can do this

 

<apex:pageBlock>

<apex:pageBlockSection columns = "3">

 

This will give you a three column page block section, however SF tends to push the third column to the far right of the screen.  To counter act this you can use pageBlockSectionItem tags and play with the data and label CSS.  Here is an example:

 

<apex:pageBlock>

  <apex:pageBlockSection columns = "3">

    <apex:pageBlockSectionItem labelStyle = "width: 13%; dataStyle: 20%;"

      Your Stuff Here

    </apex:pageBlockSectionItem

    <apex:pageBlockSectionItem labelStyle = "width: 13%; dataStyle: 20%;"

      Your Stuff Here

    </apex:pageBlockSectionItem

    <apex:pageBlockSectionItem labelStyle = "width: 13%; dataStyle: 20%;"

      Your Stuff Here

    </apex:pageBlockSectionItem

  </apex:pageBlock>

</apex:pageBlockSection>

 

Let me know if you have questions.