tekante [tekante]

Created on 16 November 2009, almost 15 years ago
Updated 16 April 2023, over 1 year ago

CVS edit link for tekante

I would like to make available a module that is useful for sites which use secondary content and functionality providers hosted by the provider. This module allows for easy creation of wrappers that can be manually added to the provider's system or dynamically requested. The contents of the help section from my module are below as it provides greater detail.

I am not aware of any module which provides this functionality.

-----

This module is designed to take a page generated by your site and break it into a
header and footer. 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

📌 Task
Status

Fixed

Component

new project application

Created by

🇺🇸United States tekante

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024