Advertise with Us

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

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

    ReplyDelete
  2. 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

    ReplyDelete
  3. 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

    ReplyDelete
  4. 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.

    ReplyDelete
  5. 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

    ReplyDelete
  6. 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

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

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

    Regards,

    Ram

    ReplyDelete
  9. 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

    ReplyDelete
  10. 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

    ReplyDelete
  11. 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,

    ReplyDelete
  12. HI Jignesh,

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

    Thanks,

    Ram

    ReplyDelete
  13. 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!!!!

    ReplyDelete
  14. 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

    ReplyDelete

Please put your Liferay related comments only

 

Members

My Followers