theme.css.fast.load=true with custom themes

765586, modified 16 Years ago. Junior Member Posts: 60 Join Date: 5/5/08 Recent Posts
Hi, is it possible to use the configuration theme.css.fast.load=true with custom themes?
With my self-written custom theme, this configuration doesn't work. I can use my theme only with theme.css.fast.load=false

Regards, Joerg
thumbnail
807074, modified 16 Years ago. Liferay Master Posts: 535 Join Date: 5/16/08 Recent Posts
The purpose of theme.css.fast.load property is to tell whether css should be cached or not. If it is cached, it can be loaded faster.

If you are doing theme development, you will change css code and would like to see the changes on the browser immediately and therefore you need to disable caching by setting theme.css.fast.load=false

Now, can you tell me what problem do you face when you set theme.css.fast.load=true?
765586, modified 16 Years ago. Junior Member Posts: 60 Join Date: 5/5/08 Recent Posts
The theme doesn't load. What i see are the standard html-controls eg. input fields, links and texts.
But no theme-specific styling. See the attached screenshot.

regards, Joerg
thumbnail
807074, modified 16 Years ago. Liferay Master Posts: 535 Join Date: 5/16/08 Recent Posts
are you getting any exception in the log? There may problem with css minification (compression).
765586, modified 16 Years ago. Junior Member Posts: 60 Join Date: 5/5/08 Recent Posts
Hi Manish,
no there are no exceptions in the log.
Can i disable the css minification?
thumbnail
3956160, modified 16 Years ago. New Member Posts: 3 Join Date: 9/4/09 Recent Posts
hey Jörg,

I had the same problem. Can't tell you what liferay did but after redeploying the theme AND restarting tomcat it was all good....

lars
thumbnail
Richard Kovacs, modified 14 Years ago. New Member Posts: 23 Join Date: 6/14/10 Recent Posts
I have got the same problem in Liferay 6.0.5. I develope a theme with theme.css.fast.load=false, every thing is fine. in live server with theme.css.fast.load=true the $theme.include($top_head_include) doesn't put the same content to the portal_normal.vm. the build.xml contains <property name="theme.parent" value="_styled" />. Nothing in the log emoticon

theme.css.fast.load=true :
250 empty line, and after
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<link rel="Shortcut Icon"
href="/oaziscomputerhu-theme/images/favicon.ico" />
<link
href="/html/portal/css.jsp?browserId=firefox&amp;themeId=oaziscomputerhu_WAR_oaziscomputerhutheme&amp;colorSchemeId=01&amp;minifierType=css&amp;languageId=hu_HU&amp;t=1278404748000"
rel="stylesheet" type="text/css" />
<link
href="/html/portlet/asset_publisher/css/main.jsp?browserId=firefox&amp;themeId=oaziscomputerhu_WAR_oaziscomputerhutheme&amp;colorSchemeId=01&amp;minifierType=css&amp;languageId=hu_HU&amp;t=1311962985000"
rel="stylesheet" type="text/css" />
<link
href="/html/portlet/login/css/main.jsp?browserId=firefox&amp;themeId=oaziscomputerhu_WAR_oaziscomputerhutheme&amp;colorSchemeId=01&amp;minifierType=css&amp;languageId=hu_HU&amp;t=1311962985000"
rel="stylesheet" type="text/css" />
<script type="text/javascript">/*<![CDATA[*/var Liferay={Browser:{acceptsGzip:function(){return true},getMajorVersion:function(){return 5},getRevision:function(){return"5.0"},getVersion:function(){return"5.0"},isAir:function(){return false},isChrome:function(){return false},isFirefox:function(){return true},isGecko:function(){return true},isIe:function(){return false},isIphone:function(){return false},isLinux:function(){return true},isMac:function(){return false},isMobile:function(){return false},isMozilla:function(){return true},isOpera:function(){return false},isRtf:function(){return true},isSafari:function(){return false},isSun:function(){return false},isWap:function(){return false},isWapXhtml:function(){return false},isWebKit:function(){return false},isWindows:function(){return false},isWml:function(){return false}},ThemeDisplay:{getCompanyId:function(){return"10131"},getCompanyGroupId:function(){return"10164"},getUserId:function(){return"10168"},getUserName:function(){return"\u0054\u0065\u0073\u0074\u0020\u0054\u0065\u0073\u0074"},getDoAsUserIdEncoded:function(){return""},getPlid:function(){return"10159"},getLayoutId:function(){return"1"},getLayoutURL:function(){return"/web/guest/home"},isPrivateLayout:function(){return"false"},getParentLayoutId:function(){return"0"},getScopeGroupId:function(){return"10156"},getParentGroupId:function(){return"10156"},isImpersonated:function(){return false},isSignedIn:function(){return true},getDefaultLanguageId:function(){return"en_US"},getLanguageId:function(){return"hu_HU"},isFreeformLayout:function(){return false},isStateExclusive:function(){return false},isStateMaximized:function(){return false},isStatePopUp:function(){return false},getPathContext:function(){return""},getPathImage:function(){return"/image"},getPathJavaScript:function(){return"/html/js"},getPathMain:function(){return"/c"},getPathThemeImages:function(){return"/oaziscomputerhu-theme/images"},getPathThemeRoot:function(){return"/oaziscomputerhu-theme/"},getURLHome:function(){return"http://localhost:8080/web/guest"},getSessionId:function(){return"2900E2D8100D6B64B619753B1EACA195"},getPortletSetupShowBordersDefault:function(){return true}},PropsValues:{NTLM_AUTH_ENABLED:false}};var themeDisplay=Liferay.ThemeDisplay;Liferay.AUI={getBasePath:function(){return"/html/js/aui/"},getCombine:function(){return false},getComboPath:function(){return"/combo/?browserId=firefox&languageId=hu_HU&t=1281948294000&p=/html/js&"},getFilter:function(){return"raw"}};window.YUI_config={comboBase:Liferay.AUI.getComboPath(),fetchCSS:false,filter:Liferay.AUI.getFilter(),root:Liferay.AUI.getBasePath()};Liferay.currentURL="\x2f";Liferay.currentURLEncoded="%2F";/*]]>*/</script>
<script src="/html/js/aui/yui/yui.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/aui/attribute/attribute.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/aui/event-custom/event-custom.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/aui/loader/loader.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/aui/oop/oop.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/aui/aui-base/aui-base.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/modules.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/dependency.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/language.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/liferay.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/util.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/events.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/portal.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/portlet.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/portlet_sharing.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/address.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/layout_configuration.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/layout_exporter.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/workflow.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/liferay/deprecated.js?t=1281948294000"
type="text/javascript"></script>
<script src="/html/js/firebug/firebug.js" type="text/javascript"></script>
<script type="text/javascript">/*<![CDATA[*/Liferay.Portlet.list=["101_INSTANCE_PAz7","cart_WAR_oazisshopportlet_INSTANCE_cgW4","listcategoriesaction_WAR_oazisshopportlet_INSTANCE_A1wa","58","featured_WAR_oazisshopportlet_INSTANCE_1gOW"];/*]]>*/</script>
<link class="lfr-css-file"
href="/oaziscomputerhu-theme/css/main.css?browserId=firefox&amp;minifierType=css&amp;languageId=hu_HU&amp;t=1311962900000"
rel="stylesheet" type="text/css" />
<style type="text/css">
#heading .logo {
background: url(/image/company_logo?img_id=0&amp;t=1311963081733)
no-repeat;
display: block;
font-size: 0;
height: 76px;
text-indent: -9999em;
width: 209px;
}
</style>
<style type="text/css"></style>



theme.css.fast.load=false :
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<link rel="Shortcut Icon"
href="/oaziscomputerhu-theme/images/favicon.ico" />
<link
href="/html/portal/css.jsp?browserId=firefox&amp;themeId=oaziscomputerhu_WAR_oaziscomputerhutheme&amp;colorSchemeId=01&amp;languageId=hu_HU&amp;t=1278404748000"
rel="stylesheet" type="text/css" />
<link
href="/html/portlet/login/css/main.jsp?browserId=firefox&amp;themeId=oaziscomputerhu_WAR_oaziscomputerhutheme&amp;colorSchemeId=01&amp;languageId=hu_HU&amp;t=1311962027000"
rel="stylesheet" type="text/css" />
<link
href="/html/portlet/journal_content/css/main.jsp?browserId=firefox&amp;themeId=oaziscomputerhu_WAR_oaziscomputerhutheme&amp;colorSchemeId=01&amp;languageId=hu_HU&amp;t=1311962027000"
rel="stylesheet" type="text/css" />
<link
href="/html/portlet/asset_publisher/css/main.jsp?browserId=firefox&amp;themeId=oaziscomputerhu_WAR_oaziscomputerhutheme&amp;colorSchemeId=01&amp;languageId=hu_HU&amp;t=1311962027000"
rel="stylesheet" type="text/css" />
<script type="text/javascript">/*<![CDATA[*/var Liferay={Browser:{acceptsGzip:function(){return true},getMajorVersion:function(){return 5},getRevision:function(){return"5.0"},getVersion:function(){return"5.0"},isAir:function(){return false},isChrome:function(){return false},isFirefox:function(){return true},isGecko:function(){return true},isIe:function(){return false},isIphone:function(){return false},isLinux:function(){return true},isMac:function(){return false},isMobile:function(){return false},isMozilla:function(){return true},isOpera:function(){return false},isRtf:function(){return true},isSafari:function(){return false},isSun:function(){return false},isWap:function(){return false},isWapXhtml:function(){return false},isWebKit:function(){return false},isWindows:function(){return false},isWml:function(){return false}},ThemeDisplay:{getCompanyId:function(){return"10131"},getCompanyGroupId:function(){return"10164"},getUserId:function(){return"10134"},getDoAsUserIdEncoded:function(){return""},getPlid:function(){return"10159"},getLayoutId:function(){return"1"},getLayoutURL:function(){return"http://teszt.oaziscomputer.hu/hirek-tesztek"},isPrivateLayout:function(){return"false"},getParentLayoutId:function(){return"0"},getScopeGroupId:function(){return"10156"},getParentGroupId:function(){return"10156"},isImpersonated:function(){return false},isSignedIn:function(){return false},getDefaultLanguageId:function(){return"hu_HU"},getLanguageId:function(){return"hu_HU"},isFreeformLayout:function(){return false},isStateExclusive:function(){return false},isStateMaximized:function(){return false},isStatePopUp:function(){return false},getPathContext:function(){return""},getPathImage:function(){return"/image"},getPathJavaScript:function(){return"/html/js"},getPathMain:function(){return"/c"},getPathThemeImages:function(){return"/oaziscomputerhu-theme/images"},getPathThemeRoot:function(){return"/oaziscomputerhu-theme/"},getURLHome:function(){return"http://teszt.oaziscomputer.hu/web/guest"},getSessionId:function(){return"5C4F5EB6448F4710019FA88035B717C8"},getPortletSetupShowBordersDefault:function(){return true}},PropsValues:{NTLM_AUTH_ENABLED:false}};var themeDisplay=Liferay.ThemeDisplay;Liferay.AUI={getBasePath:function(){return"/html/js/aui/"},getCombine:function(){return true},getComboPath:function(){return"/combo/?browserId=firefox&minifierType=js&languageId=hu_HU&t=1281948294000&p=/html/js&"},getFilter:function(){return{replaceStr:function(c,b,a){return b+"m="+(c.split("/html/js")[1]||"")},searchExp:"(\\?|&)/([^&]+)"}}};window.YUI_config={comboBase:Liferay.AUI.getComboPath(),fetchCSS:false,filter:Liferay.AUI.getFilter(),root:Liferay.AUI.getBasePath()};Liferay.currentURL="\x2f";Liferay.currentURLEncoded="%2F";/*]]>*/</script>
<script
src="/html/js/barebone.jsp?browserId=firefox&amp;themeId=oaziscomputerhu_WAR_oaziscomputerhutheme&amp;colorSchemeId=01&amp;minifierType=js&amp;minifierBundleId=javascript.barebone.files&amp;languageId=hu_HU&amp;t=1281948294000"
type="text/javascript"></script>
<script type="text/javascript">/*<![CDATA[*/Liferay.Portlet.list=["58","listcategoriesaction_WAR_oazisshopportlet_INSTANCE_MtX0","cart_WAR_oazisshopportlet_INSTANCE_1Cox","56_INSTANCE_Ta3A","101_INSTANCE_bQ4C","101_INSTANCE_x29C","featured_WAR_oazisshopportlet_INSTANCE_baG9"];/*]]>*/</script>
<link
href="http://teszt.oaziscomputer.hu/hirek-tesztek/-/asset_publisher/x29C/rss?p_p_cacheability=cacheLevelPage"
rel="alternate" title="RSS" type="application/rss+xml" />
<link class="lfr-css-file"
href="/oaziscomputerhu-theme/css/main.css?browserId=firefox&amp;languageId=hu_HU&amp;t=1311960133000"
rel="stylesheet" type="text/css" />
<style type="text/css">
#heading .logo {
background: url(/image/company_logo?img_id=0&amp;t=1311963178609)
no-repeat;
display: block;
font-size: 0;
height: 76px;
text-indent: -9999em;
width: 209px;
}
</style>
<style type="text/css"></style>

I hope this helps, if somebody want the theme, a can share it.

Best Regards,
mhmxs
thumbnail
wasim shaikh, modified 14 Years ago. Junior Member Posts: 92 Join Date: 7/16/09 Recent Posts
I hope this helps, if somebody want the theme, a can share it.


please share the theme
4483991, modified 16 Years ago. Junior Member Posts: 58 Join Date: 1/18/10 Recent Posts
Hi Friend!!

when i set theme.css.fast.load=True then Css changes are not reflecting in the page. If i set as False the changes are reflecting but Menu and Dock fonts are changed. so please help us on this..
thumbnail
3932234, modified 16 Years ago. Regular Member Posts: 183 Join Date: 9/2/09 Recent Posts
Hai Senthil,

Can you send me the which version liferay plugin and server you are using?

This error is becuase of the version that you are using is not matching with the portal..

Create the theme using the exact plugin-sdk matching with the server bundle(matching versions 5.2.3..)

Hope it'll work fine.
4483991, modified 16 Years ago. Junior Member Posts: 58 Join Date: 1/18/10 Recent Posts
Dear Abdulla,

I am using the liferay-portal-tomcat-6.0-5.2.3 version. I find this problem in my Test box(Dev. Server). In our live i did't include this code. And I noticed that this issue is happning because of Custome.css. In Custom.css Liferay did't inculde font:font-family. so if we enable the theme.css.fast.load=false then it's enabled the all css code.

friend do you got my point right. emoticon
Hi Joerg,

Please explain briefly. I don't know what's your problem.

Any have, I will give my tips here.

To develop a theme please follow the steps.

1. setup plugin environment.

2. From plugin/themes use the following command to create theme.
ant create -Dtheme.name=sample -Dtheme.display.name="My Sample Theme" (or)
create.bat sample "My Sample Theme"

3. sample theme will be created with very minimal style. It will be tough for to alter this.
For making yourself easy we need to create the theme like classic.
Then it is easy for u to modify.

4.Copy the code from the server
tomcat/ webapps/ROOT/html/themes/classic

except the _diffs folder copy all the remaining folder and place inside your theme in _diffs folder in following path
plugin/themes/sample/_diffs

5.Deploy this theme you will get the exact classic theme. Then you start doing changes on that theme. It is easy for u to develop the quick theme.


Note:

Your need to chnge only in _diffs folder. Then only you changes will files will get override the other.


Thanks in Advance,

V.C.Vijayan
Software Developer, TransIT mPower Labs (P) Ltd.
info@mpowerglobal.com
mPower Global Inc.
A Liferay expert company.
765586, modified 16 Years ago. Junior Member Posts: 60 Join Date: 5/5/08 Recent Posts
Hi,
now i know what the problem is.
If i create a new theme, it is not exactly a copy from the classic one.
The files from the classic _diffs-folder (custom.css, color schemas) are not included (for example after theme creation the custom.css is empty).
So what i have to do is to copy these files manually into my new created theme folder and build and deploy it again.
With these files it is possible to set the parameter theme.css.fast.load to true. And it works.

Thanks Jörg
thumbnail
Nilesh Gundecha, modified 14 Years ago. Regular Member Posts: 205 Join Date: 12/1/09 Recent Posts
Hi Joerg,

I am facing similar problem with my custom Theme.

Every time I do the changes to the UI theme and redeploy it in server, I am required to clear the browser cache to view the clean UI. If I dont clear the cache, then the UI looks disturbed. I had also set the "theme.css.fast.load=false".

Can anyone please tell me what I need to do for stop this?

Regards,
Nilesh