Earn 50$ & Learn...Become Author of this blog

Liferay theme Creation

Monday, May 7, 2012

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 !!!!!!!!!!!

17 comments:

RAM said...

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

RAM said...

ok thanks a lot

RAM said...

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 said...

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

Jignesh Vachhani said...

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.

RAM said...

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

Jignesh Vachhani said...

Cheers Ram!!!!

RAM said...

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

Jignesh Vachhani said...

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

RAM said...

hi,

Thank you

Regards,

Ram

RAM said...

hi,
after theme creation what is next ?
please send steps to create public portal web site......

Regards,

Ram

Ray said...

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

RAM said...

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

RAM said...

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,

RAM said...

HI Jignesh,

can you tell me what is the difference between community edition & enter price edition of liferay portal versions ?

Thanks,

Ram

Jignesh Vachhani said...

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!!!!

Anonymous said...

Very nice post. I simply stumbled upon your blog and wanted to say that I've really loved browsing
your blog posts. After all I'll be subscribing to your feed
and I am hoping you write once more soon!

Feel free to visit my homepage http://deerantlersprayblog.com

Most Reading

 

Members

My Followers

Sponsored Links