Message Boards

Back

Inspinia installation

Toggle
Inspinia installation
Answer
11/20/17 7:33 AM
Hi,
How to import a theme in liferay 7 workspace?
0 (0 Votes)

RE: Inspinia installation
Answer
11/20/17 9:49 PM as a reply to Ayman Saber Soliman.
Hello,

If the theme support Liferay 7:

1-put the theme project under "/sdk/themes/"
2- create or update "build.{yourUserName}.properties" under "/sdk/"   

app.server.type=tomcat   
app.server.parent.dir=D:\\Liferay\\Liferay7_ga1\\tomcat\\liferay-portal-7.0-ce-ga13

- Go to Eclipse IDE .
- Do "Import-> Liferay Projects from plugins SDK" and put the SDK path "D:\Liferay\Liferay7_ga1\sdk\liferay-plugins-
sdk-7.0".
- Then refresh and select your theme.

For the Inspinia theme:

- Ant build type theme will not support Liferay 7. When you create a new theme, there are only two choices in the build type "Gradle" or "Maven". 

Create new gradle theme project then paste the contents of the inspinia theme into the new project.
1- File -> new -> Liferay Module Project
2- On Right side there is pannel which blink green colour. right click on 'build' ->'run Gradle Tasks' 
3- Then refresh the theme project.
4- Check the "build folder" in *the system explorer* under the theme project.
5- Copy folder or file which you need to change into src/main/webapp/   copy the contents of "_diffs" of the old theme project in "src/main/webapp"
6- Build the project. right click on 'build' ->'run Gradle Tasks'
0 (0 Votes)

RE: Inspinia installation
Answer
11/21/17 2:03 AM as a reply to Marwen BEN TALEB ALI.
Hi,

I've used 'yo liferay-theme:import' after complete,
I rename the file custom.css to be _custem.scss,
After that everything goes well. 
only one error remain {code="404", msg="Not Found", uri=/o/inspinia-theme/css/custom.css}.
0 (0 Votes)

RE: Inspinia installation
Answer
11/21/17 10:21 AM as a reply to Ayman Saber Soliman.
Ayman Saber Soliman:
Hi,

I've used 'yo liferay-theme:import' after complete,
I rename the file custom.css to be _custem.scss,
After that everything goes well. 
only one error remain {code="404", msg="Not Found", uri=/o/inspinia-theme/css/custom.css}.


I tried 'yo liferay-theme:import'  command, I got a new project and when I tried to import it in the import window of Eclipse IDE I do not find the theme. I did Refresh and it does not appear.
0 (0 Votes)

RE: Inspinia installation
Answer
11/21/17 8:46 PM as a reply to Marwen BEN TALEB ALI.
Hi,

There are Three liferay 7 theme directory structure
directory structure:
  • IDE.
  • liferay theme generator.
  • liferay plugin project ('your current structure').
I use 'yoman with gulp' (liferay-theme-genetator) to build, deploy and watch the theme without import project to IDE.
steps to migrate your Plugins SDK theme to the Theme Generator
https://dev.liferay.com/develop/tutorials/-/knowledge_base/7-0/migrating-a-6-2-theme-to-liferay-7

What i need now to convert your structure from plugin to IDE structure.
0 (0 Votes)

RE: Inspinia installation
Answer
11/22/17 6:18 AM as a reply to Ayman Saber Soliman.
Hi,

Finally i was able to convert it (Inspinia ---> Liferay-theme-genrator 7) without errors emoticon.
I can send you a copy if you want.
0 (0 Votes)

RE: Inspinia installation
Answer
11/22/17 11:04 PM as a reply to Ayman Saber Soliman.
Ayman Saber Soliman:
Hi,

Finally i was able to convert it (Inspinia ---> Liferay-theme-genrator 7) without errors emoticon.
I can send you a copy if you want.

Hi,
as you said the last time, this command 'yo liferay-theme:import' allows to migrate from plugins sdk theme to the Theme Generator and it works fine.
0 (0 Votes)