Often used to reduce duplicate content, where the same content needs to be shown in multiple places throughout a site.
For organisation, developers often create a new hidden page /includes/, and child pages are included in various locations through pages or in a website design.
As an example, if you needed a newsletter sign-up form shown in multiple places throughout a website, create the form on a page, and then simply include that page where needed with <logic:include page="/includes/newsletter/" />
The page_id of the page to be included.
Include the Contents of a Page
The contents of /includes/newsletter/ will be included in place of this tag.
<logic:include page="/includes/newsletter/" />
Query String Injection
You can pass query string parameters to the included page.
<logic:include page="/includes/product-banner/?product_id=4" />
From within /includes/product-banner/ the value of $_GET['product'] will be set to 4.
Repeat Child Pages as Rotator Slides
Demonstrates the use of a data repeater to populate rotator slides with the content of pages.