From version 2.13 onwards, there are 2 types of theme for the link directory:
For links defined in the back-office, the storage format has changed. Data migration is automatic.
A graphic migration is necessary if your charter includes conf/link-themes.xml
Rename this file to conf/link-directory.xml.
This file can now be used to define:
The structure of this file has therefore been modified. A file previously defined as follows:
<link-themes> <!-- Configure the template's link directory inputdata here --> <themes templates="index,page" configurable="true" displayUserLinks="true"> <theme id="OUTILS" lang="fr"/> <theme id="TOOLS" lang="en"/> </themes> </link-themes>
devra être modifié de la manière suivante (ajout de la balise <inputdata>) :
<link-themes> <!-- Configure the template's link directory inputdata here --> <inputdata> <themes templates="index,page" configurable="true" displayUserLinks="true"> <theme id="OUTILS" lang="fr"/> <theme id="TOOLS" lang="en"/> </themes> </inputdata> </link-themes>
To define themes in the graphic charter, please refer to the integration manual.
The XML entry form for the "Link directory" service has been slightly modified.
If you have overloaded the rendering of this service (pages/services/directory/directory_1.0.xsl), the theme label is no longer found in the attribute @label tag, but in the <label>
Look for the use of @label to replace it.
For example, in the "link-theme" template:
<xsl:for-each select="themes/theme"> <li><xsl:value-of select="@label"/> </xsl:for-each>
has been replaced by :
<xsl:for-each select="themes/theme"> <li><xsl:value-of select="label"/> </xsl:for-each>