Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-9991

The common-content-head-css template is not imported into the contents view of search results of the new search service

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.0
    • 4.2.3
    • None
    • 4.5 RC1, 4.5 RC2

      How to reproduce it :

      • insert the search engine in a page and configure it in order to have articles with link view as results
      • into the article's stylesheets corresponding to the view link, overide the common-content-head-css template with this content :
        <xsl:template name="common-content-head-css">
        		 <link rel="stylesheet" type="text/css" href="{ametys:skinURL('scss/index-advertisement/scss/main.css')}" media="screen, print, handheld"/>
        		 <link rel="stylesheet" type="text/css" href="{ametys:skinURL('scss/index-advertisement/scss/print.css')}" media="print"/>
        	</xsl:template>
      • preview the search results
        > the css are not loaded
      • into the article's stylesheets corresponding to the view link, overide the begining of common-content-body-content template with this content :
        <xsl:template name="common-content-body-content">
        		 <link rel="stylesheet" type="text/css" href="{ametys:skinURL('scss/index-advertisement/scss/main.css')}" media="screen, print, handheld"/>
        		 <link rel="stylesheet" type="text/css" href="{ametys:skinURL('scss/index-advertisement/scss/print.css')}" media="print"/>
        
        [...]
        	</xsl:template>
      • preview the search results
        > the css are well loaded

            raphael Raphaël Franchet
            llopez Laure Lopez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: