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
CSC / IT Finance / PRM
Paris La Défense
Mail : firstname.lastname@example.org
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 :
<cq:include script="head.jsp" />
<cq:include script="body.jsp" />
<%@include file="/libs/foundation/global.jsp" %>
<% currentDesign.writeCssIncludes(pageContext); %>
CSC / IT FINANCE / NICE V2
Paris la Défense
mail : email@example.com