Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Level 1
Level 2
Melden Sie sich an, um alle Badges zu sehen
Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.
Hi,
Is it possible to add the print media to the CSS clientlib include in anyway.
<link rel="stylesheet" type="text/css" href="print.css" media="print">
I don't want to call the print css file separately, I want to add it through cq:includeClientLib only.
Thanks,
Bala
Gelöst! Gehe zu Lösung.
Hi
As mentioned by Praveen and Scott, we could not add it directly.
You need to add it separate CSS file or existing file like:-
@media not|only mediatype and (expressions) {
CSS-Code;
}
is same as
<link rel="stylesheet" media="mediatype and|not|only (expressions)" href="print.css">
I hope this would help you.
~kautuk
Zugriffe
Antworten
Likes gesamt
I would like to know the same.
Zugriffe
Antworten
Likes gesamt
I dont think cq:includeClientLib will help you to included print CSSas there is not separate parameter for this. The whole purpose of this is to include your client libs categories. May be you can create a client lib which has only print css and load it based on template
Zugriffe
Antworten
Likes gesamt
Agreed with Praveen - load that CSS into a separate ClientLib and call when needed.
Zugriffe
Antworten
Likes gesamt
Hi
As mentioned by Praveen and Scott, we could not add it directly.
You need to add it separate CSS file or existing file like:-
@media not|only mediatype and (expressions) {
CSS-Code;
}
is same as
<link rel="stylesheet" media="mediatype and|not|only (expressions)" href="print.css">
I hope this would help you.
~kautuk
Zugriffe
Antworten
Likes gesamt
+1 to Kautak's solution
Zugriffe
Antworten
Likes gesamt
Zugriffe
Likes
Antworten
Zugriffe
Likes
Antworten