1 Reply Latest reply on Apr 25, 2012 2:08 AM by mbelletre88

    compatibility problem CQ version 5.4 and 5.5, design with a .css file doesn't work

    Arthur Foulon CSC France

      I'had been using CQ 5.4, and now the 5.5 version.

      Using the 5.5 version, I want to  import a .css file as a design of my web page

       

       

      What I have done:

       

      -create a new page

       

      -copy a static.css file from the tab "tools" and paste it with the new page

       

      -On my web page, WCM-PageProperties-Advanced-Path then I select the static.css

       

      -The web page should get the new style but nothing.

       

       

       

      I can do that with the 5.4 version but not with the 5.5, is it a bug? or have I to do

      differently ?

       

      kind regards,

       

      Arthur Foulon

      CSC / IT Finance / PRM

      Paris La Défense

      Mail : afoulon@csc.com

      www.csc.com

        • 1. Re: compatibility problem CQ version 5.4 and 5.5, design with a .css file doesn't work
          mbelletre88

          In CQ5.5, if you want to apply a design in your web page there are two possibilities :

           

          - if you have not a personnal header, just include <cq:include script="head.jsp" /> in your contentpage.

          And the file head.jsp located in /libs/foundation/components/page/head.jsp will be loaded by default.

           

          - if you have a personnal header, you need to have <% currentDesign.writeCssIncludes(pageContext); %>

          between <head> tags in your contentpage.

          ( you can create your file head.jsp under /apps/your_website/components/page/contentpage/ and add <cq:include script="head.jsp" /> in your contentpage )

           

           

          For example :

           

          /apps/your_website/components/page/contentpage/contentpage.jsp

          <%@include file="/libs/foundation/global.jsp"%>

          <html>

              <cq:include script="head.jsp" />

              <cq:include script="body.jsp" />

          </html>

           

          /apps/your_website/components/page/contentpage/head.jsp

          <%@include file="/libs/foundation/global.jsp" %>

          <head>

              <% currentDesign.writeCssIncludes(pageContext); %>

          </head>

           

          Best regards,

           

          Mathieu BELLÊTRE

          CSC / IT FINANCE / NICE V2

          Paris la Défense

          mail : mbelletre@csc.com

           

          www.csc.com