Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
How to add attribute to header-portlet-css?
There are three different ways that one can add portlet's css style sheets. One of the way is to add a node <header-portlet-css> in the liferay-portlet.css. However, I have not really figured out how to add preferred or alternate css style sheet to my portlet by adding a title attribute or by changing the value of the attribute "rel". For example,
1. preferred css
<link rel="stylesheet" type="text/css" href="paul.css" title="bog standard" />
2. alternate css
<link rel="alternate stylesheet" type="text/css" href="paul.css" title="wacky" />
How can Liferay allow these type of portlet's CSS style sheets? Please see this link for more explanation.
Thanks
1. preferred css
<link rel="stylesheet" type="text/css" href="paul.css" title="bog standard" />
2. alternate css
<link rel="alternate stylesheet" type="text/css" href="paul.css" title="wacky" />
How can Liferay allow these type of portlet's CSS style sheets? Please see this link for more explanation.
Thanks