Plugin Proxied Content | |
Authors | Anyware Services |
Most recent version | 1.0.0 |
Tracking issues | |
Download | Lastest version |
This plugin is only available for version 3.4+.
The service is included in versions 3.3 or earlier (no need plugin)
This extension provides a service of "revamping": integrate a remote web page into a page of your site, removing all the presentation information and applying the skin to it.
When browsing the embedded page, links can be followed and forms submitted. The pages on which the user is redirected are embedded the same way as the others.
To prevent conflicts in script execution, javascript is disabled by default. See "customization" section for instructions to enable it.
To avoid turning the server into a web proxy open to all, only links pointing to pages located on the same server can be followed.
Go to "Add service" menu and select "External page (embedded)" to insert the service
Parameters | Description | Mandatory |
Page url | The remote page url to wrap | yes |
Display | Select the view to use for the service rendering | yes |
To provide custom behavior when embedding the page, the stylesheet responsible for filtering and translating the URIs in the embedded page can be overridden (see the "Override service behavior" pagefor reference). You should go and see the original "apply-skin.xsl" stylesheet to know what can be overridden.
In the following example, the javascript tags (inline and external <script>) are included in the result (parameter "keep-js" set to "true"), and only the first table in the div of id "bodyContent" of the embedded page is integrated.
<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xhtml="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xhtml"> <xsl:include href="plugin:revamping://pages/apply-skin.xsl"/> <xsl:param name="remote-server"/> <xsl:param name="server"/> <xsl:param name="complete-url"/> <xsl:param name="keep-js">true</xsl:param> <xsl:template match="body"> <body> <xsl:apply-templates select=".//div[@id = 'bodyContent']/table[1]"/> </body> </xsl:template> </xsl:stylesheet>