+ Start a Discussion
sai manognasai manogna 

I have couple of pages in an application Says as page1 ,page2,page3,page4,page5.All the five pages are having same content as footer and header?? when i add some sentences on page 1 ,it should appear in all the pages .How can u achieve this??

I have couple of pages in an application Says as page1 ,page2,page3,page4,page5.All the five pages are having same content as footer and header?? when i add some sentences on page 1 ,it should appear in all the pages .How can u achieve this??
Parmanand PathakParmanand Pathak
Hi Sai,

You can achieve this by two ways - 

1. By Visualforce Component - Create a visualforce component and write the sentence inside component and call the visualforce component on  the visualforce page.
Reference - https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_component.htm

2. By using custom setting -  Create a custom setting and store the sentence inside it, and use the custom setting inside visualforce page you want.

Thanks,
Parmanand Pathak