Recent Bloggers

David H Nebinger

67 Publications
20 février 2018

Jamie Sammons

Staff
11 Publications
19 février 2018

Iacopo Colonnelli

2 Publications
17 février 2018

Christian Klein

1 Publications
15 février 2018

Jose M. Navarro

Staff
8 Publications
14 février 2018

Maria Sanchez

Staff
18 Publications
13 février 2018

Sergio González

Staff
5 Publications
13 février 2018

Minhchau Dang

Staff
15 Publications
31 janvier 2018

Koen Olaerts

3 Publications
30 janvier 2018

Fabian Larroca

1 Publications
25 janvier 2018
« Retour

Liferay 7 theme development using IDE-2

General Blogs 19 décembre 2017 Par Sushil Patidar

I wrote blog for theme development with IDE . Further I explored the way to configure gradle project. I would like to share those steps that I have experienced hard to find and many developers I saw asking for the same thing on the forums.

Gradle Configuration

 

By default, if we create theme using IDE it templates are built using freemarker and parent theme is “_styled”. I was also stuck to this scenario and explored to find a way we can configure these particular options .

As we saw in previous blog, if we create module theme project using Gradle, in the build.gradle it applies theme builder plugin. This plugin add buildTheme gradle task to the project which generate theme files based on the parentTheme and templateExtention property configured in the task.  By default, following are the values for these property.

 

 parentName

"_styled"

 templateExtension

"ftl"

   

 

To change the values of these properties in the case if we want to generate theme files using unstyled theme and velocity template it need to configure the task properties as follows build.gradle file.

 

 

Now run buildTheme task,  files will be generated as per above configuration.

 

 

One need to include the gradle dependency based on type of parent theme configured like follows.

Styled

Unstyled
 
 
Aucun commentaire. Soyez le premier.