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
Sandra WicketSandra Wicket 

Visualforce PDF: add second visualforce page

Hey Guys, 

is it possible to append a visualforce page to another one ? One page is just a text file. To reduce the lines of Code of the "real" visualforce page, i am looking for a way to merge these two pages. Is there a simple way to do this ? 

Greetings,
Sandra
Best Answer chosen by Sandra Wicket
Manish  ChoudhariManish Choudhari
Hi Sandra,

Yes, this is possible. You need to use <apex:include> tag for the same. 
Check out this link: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_include.htm

Let me know if this helps.

**Please mark this as best answer if this answers your query.**

Thanks,
Manish Choudhari
14x Certified Salesforce Architect
Certification link:
http://certification.salesforce.com/certification-detail-print?conId=003G000002gRrrEIAS​
My Blog: http://sfdcfacts.com/
Youtube Channel: https://www.youtube.com/SFDCFacts
LinkedIn: https://www.linkedin.com/in/manish-choudhary/
Trailhead: https://trailhead.salesforce.com/en/me/manish-choudhari
Twitter: https://mobile.twitter.com/manish_sfdc