Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Flo We
Creating a Theme with Plugin SDK 6.1.0
3 maggio 2012 1.55
Risposta

Flo We

Punteggio: Junior Member

Messaggi: 45

Data di Iscrizione: 12 gennaio 2011

Messaggi recenti

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
3 maggio 2012 2.13
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7990

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

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
3 maggio 2012 2.28
Risposta

Flo We

Punteggio: Junior Member

Messaggi: 45

Data di Iscrizione: 12 gennaio 2011

Messaggi recenti

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
3 maggio 2012 2.39
Risposta

Oliver Bayer

Punteggio: Liferay Master

Messaggi: 867

Data di Iscrizione: 18 febbraio 2009

Messaggi recenti

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
3 maggio 2012 5.16
Risposta

Mazhar Alam

Punteggio: Regular Member

Messaggi: 188

Data di Iscrizione: 25 novembre 2011

Messaggi recenti

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
5 maggio 2012 2.42
Risposta

Allabakash Shaik

Punteggio: New Member

Messaggi: 2

Data di Iscrizione: 5 maggio 2012

Messaggi recenti

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
5 maggio 2012 9.21
Risposta

David H Nebinger

Punteggio: Liferay Legend

Messaggi: 6269

Data di Iscrizione: 1 settembre 2006

Messaggi recenti

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
5 maggio 2012 14.22
Risposta

Hitoshi Ozawa

Punteggio: Liferay Legend

Messaggi: 7990

Data di Iscrizione: 23 marzo 2010

Messaggi recenti

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
6 maggio 2012 23.25
Risposta

Allabakash Shaik

Punteggio: New Member

Messaggi: 2

Data di Iscrizione: 5 maggio 2012

Messaggi recenti

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.