Integration manual


Installation

  • Stop the server
  • Download jars from plugin and add them (ametys-plugin-proxied-content-1.0.0.jar and ametys- plugin-proxied-content-resources-1.0.0.jar) to your application's WEB-INF/lib directory . Ametys
  • Restart the server

Personalization

To customize the behavior and/or rendering of the included external HTML page, the XSL style sheet responsible for filtering and translating URI into the embedded page can be overloaded. 

To find out how to override a service, go to the dedicated page: Graphic rendering of a service.

In the following example, the javascripts tags <script> are included in the rendering thanks to the keep-js positioned at true. In this example too, only the first array of the <div id="bodyContent"> 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:import href="plugin:proxied-content://pages/services/revamping/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>

Back to top

Proxied Content