This module is designed to take a page generated by your site and break it into a header and footer for use in creating a wrapper for an external site. This is useful when you have other sites providing content for you on their domain and you need your design wrapped around their content. Based on the capabilities of the other site, they can dynamically request the header and footer so that it is always up to date or you may cut and paste the generated HTML into their administrative systems when an update is required. This module takes care of modifying relative links and references to images/js/css files and will save a copy of aggregated JS and CSS files so that they remain available even through aggregation cache clearing.
This module splits a page generated by your site by looking for a string that indicates where the split should be performed. The string to look for is configurable in the admin section and there are many options for placing the string in your page. It can be placed as the content element or added to a template file. This module makes no restrictions on how you mark the location for the split.
Example of setting up a wrapper:
Create a page on your site with no content other than the string to split the wrapper on. It is recommended that the string take the form of an HTML comment since it will be output as part of the header portion of the wrapper.
Configure the admin settings to set the string to look for.
Note the URL of your page. For this example assume it is example.com/pet_wrapper
To retrieve the header, make a request to example.com/third_party_wrappers/top/pet_wrapper
To retrieve the footer, make a request to example.com/third_party_wrappers/bottom/pet_wrapper
Development for this module was sponsored in part by: Morris Digitalworks