Plugin Proxied Content


Plugin Proxied Content
Extension to insert a remote web in your web page,
applying style of your skin

Authors

Anyware Services

Most recent version

1.0.0

Tracking issues

https://issues.ametys.org/browse/PROXIEDCONTENT

Download

Lastest version 

  1. Presentation
  2. Limitations
  3. User manual
    1. Service's parameters
  4. Installation and download
    1. Download
    2. Installation
    3. Customization
  5.  Compatibility

 

This plugin is only available for version 3.4+.
The service is included in versions 3.3 or earlier (no need plugin)

Presentation

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.

Limitations

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.

User manual

Go to "Add service" menu and select "External page (embedded)" to insert the service

Service's parameters

 

Parameters

Description

Mandatory

Page url

The remote page url to wrap

yes

Display

Select the view to use for the service rendering

yes

 

Installation and download

Download

Installation

  • Add the plugin JAR in the WEB-INF/lib directory of your Ametys application.
  • Add the right to insert the "External page (wrapped)" service to webmasters

Customization

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>

 Compatibility

Plugin version

1.0.x

Ametys 3.4.x

Back to top