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
Brad EichenBrad Eichen 

Creating custom tabs within a Visualforce Page

I am new to Visualforce and am struggling with something that should be easy. I am creating a complete custom page for a Community landing page. This is replacing an older page that was used on an existing customer portal page being phased out. I basically want a VisualForce page that has multiple tabs. Now the tabs are already created under Create/Tabs referencing their own VF pages. What I can't seem to figure out is how to call these tabs into the tabPanel/tab tags.

So I would expect to do something like this-
<tabPanel>
<tab name=customtabalreadycreated1></tab>
<tab name=customtabalreadycreated2></tab>
</tabPanel>

I can just as easily just copy and paste the code from the VF pages for each tab into the new page but then the code is very long and not very readable. Is this my only option or is there some way to reference the custom tabs in the tab panel of the new VF page?

Thanks
VinodKRVinodKR
Hi Brad,

Try this:

<tabPanel>
<tab name=customtabalreadycreated1>
         <apex:include pageName="your_Page_Name"/>
</tab>
<tab name=customtabalreadycreated2>
         <apex:include pageName="your_Page_Name"/>
</tab>
</tabPanel>

Thanks,

Have a great day ahead,Let the Force be with you!
Please mark this as best answer if it helps you.
Jayant Kumar JaiswalJayant Kumar Jaiswal
But how the tab navigation in happen in this case?

I guess all the pages will have to share a controller is it?