Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Flo We
Creating a Theme with Plugin SDK 6.1.0
May 3, 2012 1:55 AM
Answer

Flo We

Rank: Junior Member

Posts: 45

Join Date: January 12, 2011

Recent Posts

Hello,

I am trying to create a new Theme with the plugin SDK 6.1.0.
So far I downloaded the SDK and modified the build.properties to add the correct paths.

Unfortunatly, when I try to create a new Theme with the help of the cmd Command
create.bat newtheme "Description"

The Theme Folder is created but it is as good as Empty, it has a directory structure like this:

*docroot
**_diffs
** WEB-INF

Containing this two files:
liferay-plugin-package.properties
build.xml

the build.xml contains this:

<?xml version="1.0"?>
<!DOCTYPE project>

<project name="newtheme-theme" basedir="." default="deploy">
<import file="../build-common-theme.xml" />

<property name="theme.parent" value="_styled" />
</project>


the liferay-plugin-package.properties contains this:

name=Description
module-group-id=liferay
module-incremental-version=1
tags=
short-description=
change-log=
page-url=http://www.liferay.com
author=Liferay, Inc.
licenses=LGPL


May anybody be so kind and help me out with this problem?

Kind Regards,
Florian
Hitoshi Ozawa
RE: Creating a Theme with Plugin SDK 6.1.0
May 3, 2012 2:13 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

It's usually easier to just use Liferay IDE to setup build.properties. Recommend using it.

http://www.liferay.com/downloads/liferay-projects/liferay-ide
Flo We
RE: Creating a Theme with Plugin SDK 6.1.0
May 3, 2012 2:28 AM
Answer

Flo We

Rank: Junior Member

Posts: 45

Join Date: January 12, 2011

Recent Posts

Hello Hitoshi,

thank you for the Link, I will try that out.
But since I am not using Eclipse for anything else I would still be interested how to work out this problem without the Liferay IDE.
Oliver Bayer
RE: Creating a Theme with Plugin SDK 6.1.0
May 3, 2012 2:39 AM
Answer

Oliver Bayer

Rank: Liferay Master

Posts: 889

Join Date: February 18, 2009

Recent Posts

Hi Flo,

if you run the ant task "deploy" all the files from the theme parent are getting copied over. Now copy the ones you want to modify to the _diffs folder using the same folder structure. After you've done your modifications re-run the ant call again to see the changes in the portal.

HTH Oli
Mazhar Alam
RE: Creating a Theme with Plugin SDK 6.1.0
May 3, 2012 5:16 AM
Answer

Mazhar Alam

Rank: Regular Member

Posts: 201

Join Date: November 25, 2011

Recent Posts

Hi,

It would be better if you use eclipse ide to develop your theme..thats way too simple..
Allabakash Shaik
RE: Creating a Theme with Plugin SDK 6.1.0
May 5, 2012 2:42 AM
Answer

Allabakash Shaik

Rank: New Member

Posts: 2

Join Date: May 5, 2012

Recent Posts

We're also facing the same problem. There were no folders with the _styled or _classic in the tools/themes_impl folder. Can someone suggest how to overcome this problem?
David H Nebinger
RE: Creating a Theme with Plugin SDK 6.1.0
May 5, 2012 9:21 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11793

Join Date: September 1, 2006

Recent Posts

tools/theme_impl is just the project template, it doesn't know anything about the parent themes.

When you create your theme project, you get a build.xml file. Inside of that file you declare the parent theme for the project. It defaults to "_styled", but you can change it to "_unstyled" or "classic". If you want to use another theme from your themes folder, you just change it to "../local-theme-dir".
Hitoshi Ozawa
RE: Creating a Theme with Plugin SDK 6.1.0
May 5, 2012 2:22 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

Most of the information necessary is written in the developer's guide in the theme section.

http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/anatomy-of-a-the-4
Allabakash Shaik
RE: Creating a Theme with Plugin SDK 6.1.0
May 6, 2012 11:25 PM
Answer

Allabakash Shaik

Rank: New Member

Posts: 2

Join Date: May 5, 2012

Recent Posts

Not sure where I was biased emoticon. I tried the steps given in the documentation again. I'm able to proceed with the creation of the theme.