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
Ghanshyam BhattGhanshyam Bhatt 

Apex Page as Header and Footer and Layout using it

Dear Members,


I am developing a portal. I am having Header and Footer into it. My footer contains Privacy Policy and Terms & Conditions. I want to show different Privacy Policy and Terms & Condition for different Users. SalesForce allow me to upload Header and Footer as HTML. But i want to make these pages using Apex VF page so that i can control its content from controller. I want to develop a layout which i can use on every page. I will keep on changing the body as per my clicks.


I want to develop a Java Tiles type concept here.


Any Idea guys.

Plese help and Thanks in Advance.


Ghanshyam Bhatt  

Jerun JoseJerun Jose
I dont know much about java tiles, but if you want to use reusable components, try the following items

apex:template -- this is a basic template where you can plugin content.
apex:include -- to include an entire VF page.
apex:component -- to create a custom component that can take up attributes and change its behaviour.
apex:iframe -- just your normal iframe where you can pass a URL for another page with parameters.

Hope it helps.
Bhawani SharmaBhawani Sharma
Nope,Salesforce doesn't have tiles concept. You will have to define your html header and footer.