Graphics migration


Before migrating Ametys ODF , you need to migrate Ametys CMS 4 .3.x to 4.4.x

This guide covers graphical migration from Ametys ODF 4.3.x to 4.4.0.
See also the technical migration guide.

  1. Support for text fields in the search form
  2. Importing XSLs

Support for text fields in the search form

This migration concerns only ODF applications using a declination of ODF charter.

The XSL template for displaying search criteria in the header has been improved so that any text criterion in 1st position can be displayed correctly (previously, only the "Full text" criterion was supported).

If you have overloaded the template XSL "top-search-input" compare your overload with the current version of the template (file skin-odf/services/web/pages/services/search/search-default/criteria/criteria.xsl).

In particular, the XSL "textfield" template no longer exists. It has been replaced by the following template, which supports autocompletion:

<xsl:template match="criterion[contains(@name, 'user.input.criterion.common$wording$textfield')]|criterion[contains(@name, 'user.input.criterion.common$titleorwording$textfield')]" mode="first-field" priority="100">

The template renders the other criteria in 1st position:

<xsl:template match="criterion" mode="first-field">

Importing XSLs

This migration concerns only ODF applications using a declination of ODF charter.

To facilitate charter inheritance, all XSL imports into the core charter have been changed from relative to absolute. For example :

<xsl:import href="head.xsl"/>

has become

<xsl:import href="skin://stylesheets/head.xsl">

Previously, the head.xsl overload only worked if you didn't also overload the XSL that loaded it.

Now it's very easy to overload any XSL ; but this may have led to regressions on your graphic charter:

  • for example, overloads that were not taken into account are now,
  • or to get around this problem, you may have added an import to your head.xsl which has become useless and should be removed.
Back to top