InputData - Assigning a theme to custom links


Until now, when using the link directory via InputData (outside a service), adding a custom link was not managed. Charters that tried to do so were unable to add the custom link to a theme, so it was never brought up. It is now possible to add custom links to InputData.

When a charter calls a favorite add button from an InputData, it must call the display-add-user-link-btn-inputdata template with the parameters :

  • customTheme with the name of a theme (as defined in link-themes.xml)
  • displayUserLinks being a Boolean, usually extracted from the displayUserLinks attribute of the relevant InputData
    For example
<xsl:call-template name="display-add-user-link-btn-inputdata">
    <xsl:with-param name="customTheme" select="'AUTRES_APPLICATIONS'"/>
    <xsl:with-param name="displayUserLinks" select="/cms/inputData/linkDirectory/@displayUserLinks"/>
</xsl:call-template>

Make sure that the InputData in question has the displayUserLinks="true" attribute (this should have been the case before, but wasn't always the case).

Back to top