You need to sign in to do that
Don't have an account?
Brad 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
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
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.
I guess all the pages will have to share a controller is it?