This article will be useful to you , If you are new in liferay, and want to create theme from scratch,
Just follow below steps :
1) Download plugin-sdk from liferay site
2) Configure plugin-sdk by configuring build.jignesh.vachhani.properties file
here you will have to replace your user name instead of jignesh.vachhani
#
# Specify the paths to an unzipped Tomcat bundle.
#
app.server.type=tomcat
app.server.dir=D:/Liferay_New/tomcat/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23
app.server.deploy.dir=${app.server.dir}/webapps
app.server.lib.global.dir=${app.server.dir}/lib/ext
app.server.portal.dir=${app.server.dir}/webapps/ROOT
##
## Auto Deploy
##
#
# Plugins will be deployed to this directory. Make sure that Liferay is
# also set to scan this directory.
#
auto.deploy.dir=D:/Liferay_New/tomcat/liferay-portal-6.1.0-ce-ga1/deploy
3) Now go to themes folder in plugin-sdk and run below command
create "My Theme" mytheme

4) It will create My Theme-theme folder under themes folder
5) Go to My Theme-theme and run below command :

6) So your theme project is ready now and now you can update any css,vm,javascript file by putting in _diff
folder and can run again ant deploy command from theme project folder
7) If theme is deployed properly then you can see your custom theme by clicking on Manage Pages >> Look and feel section
If still you are confused , how to create theme just fire your comment here and we will try to resolve it......
Enjoy !!!!!!!!!!!
Just follow below steps :
1) Download plugin-sdk from liferay site
2) Configure plugin-sdk by configuring build.jignesh.vachhani.properties file
here you will have to replace your user name instead of jignesh.vachhani
#
# Specify the paths to an unzipped Tomcat bundle.
#
app.server.type=tomcat
app.server.dir=D:/Liferay_New/tomcat/liferay-portal-6.1.0-ce-ga1/tomcat-7.0.23
app.server.deploy.dir=${app.server.dir}/webapps
app.server.lib.global.dir=${app.server.dir}/lib/ext
app.server.portal.dir=${app.server.dir}/webapps/ROOT
##
## Auto Deploy
##
#
# Plugins will be deployed to this directory. Make sure that Liferay is
# also set to scan this directory.
#
auto.deploy.dir=D:/Liferay_New/tomcat/liferay-portal-6.1.0-ce-ga1/deploy
3) Now go to themes folder in plugin-sdk and run below command
create "My Theme" mytheme
4) It will create My Theme-theme folder under themes folder
5) Go to My Theme-theme and run below command :
6) So your theme project is ready now and now you can update any css,vm,javascript file by putting in _diff
folder and can run again ant deploy command from theme project folder
7) If theme is deployed properly then you can see your custom theme by clicking on Manage Pages >> Look and feel section
If still you are confused , how to create theme just fire your comment here and we will try to resolve it......
Enjoy !!!!!!!!!!!




16 comments:
hiii,
I am new Liferay plz help me
I have Html.css,js & images in out side.i need to create theme by using them.
how to create theme in liferay
Regards,
Ram
ok thanks a lot
hi,
I fallowed above procedure, everything is fine but
while am using this command like
>ant deploy
i am getting Build failed
how can Solve?
Regards,
Ram
hi,
I fallowed above procedure, everything is fine but
while am using this command like
>ant deploy
i am getting Build failed
how can Solve?
Regards,
Ram
Ram
There would be some problem to set the property file.
Don't rename existing build.properties file. create seprate copy and create build..properties file and define path properly in that file how that will make sense to you.
hi,
I done theme creation successfully by using theme creation steps given by Jignesh
(the problem is previous i used wrong path related to server)
Thanks,
Ram
Cheers Ram!!!!
hi Jignesh,
I didn't get Step 6.
Already some css,images,js files got by default.
can you provide directory structure for the custom files.
can i create css,js,images folder once again or can i use that folders..
Regards,
Ram
So you can over ride all that css and javascripts and template byr creating the same folder under _diff folder .
Like _diff/css/custom.css _diff/javascript/xyz.js
hi,
Thank you
Regards,
Ram
hi,
after theme creation what is next ?
please send steps to create public portal web site......
Regards,
Ram
We have problems deploying a theme (built for LR 6.0.6) for 6.1 ..is there a list of changes somewhere, things to keep in mind for theme upgrading?
Regards
HI,
I am using liferay-portal-6.1.0-ce-ga1..
I need to create a website in that website all pages having common header & footer .
So by using header & footer i need to create theme for all pages..is it possible?
if possible please help.
(Previous i created but it is not like this )
anybody know,help me..
Regards,
Ram
HI All,
I want to migrate all the data from liferay portal to SharePoint2010 ...
what is the better apporch to do? or do we have any third party tool to do the same.?
currently I have installed WindowsServer2008 and SP2010 in my machine.
Thanks in Advance,
HI Jignesh,
can you tell me what is the difference between community edition & enter price edition of liferay portal versions ?
Thanks,
Ram
Hi Ram
In CE you can not get support or security update patches from Liferay.
Also you could not have some of the portlets available in CE which are available in EE.
In EE you can get full support from liferay and can raise ticket for some of the OOB bugs which are consisting in existing version.
Hope this information will clear your doubt!!!!
Post a Comment