Forums de discussion

Liferay 7 theme

Paramita Nandi, modifié il y a 8 années.

Liferay 7 theme

New Member Publications: 23 Date d'inscription: 05/03/12 Publications récentes
I want to create a "hello world" type liferay theme for the upcomingliferay version 7.
Please share me the steps to create theme for liferay 7.
thumbnail
David H Nebinger, modifié il y a 8 années.

RE: Liferay 7 theme

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
there has never been a "hello world" type theme.

There have been "hello world" type portlets.

Themes are different animals.

That said, you can start with the sdk and build a theme as usual.
Paramita Nandi, modifié il y a 8 années.

RE: Liferay 7 theme

New Member Publications: 23 Date d'inscription: 05/03/12 Publications récentes
Actually my question was how can i create a liferay theme for Liferay 7 portal?
thumbnail
Juan Gonzalez, modifié il y a 8 années.

RE: Liferay 7 theme

Liferay Legend Publications: 3089 Date d'inscription: 28/10/08 Publications récentes
Seems there isn't any Developer Network documentation yet,

but here you have the Devcon 2015 video where it tells how to do it:

https://www.youtube.com/watch?v=GtJoSOOJb8c

and here you can download the slides (click on "Build themes for Liferay "7", fill in the form and you will download the slides):

https://www.liferay.com/web/events2015/devcon/recap

Hope it helps...
Paramita Nandi, modifié il y a 8 années.

RE: Liferay 7 theme

New Member Publications: 23 Date d'inscription: 05/03/12 Publications récentes
I am following the steps mentioned in the slides and able to execute upto "npm install -g yo gulp" command. Whenever trying to execute "npm install -g generator-liferay-theme" it shows the following error.

gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack at Error (native)
gyp ERR! stack at TLSSocket.<anonymous> (_tls_wrap.js:1003:38)
gyp ERR! stack at emitNone (events.js:67:13)
gyp ERR! stack at TLSSocket.emit (events.js:166:7)
gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:570:8)
gyp ERR! System Windows_NT 6.1.7601


Juan Gonzalez:
Seems there isn't any Developer Network documentation yet,

but here you have the Devcon 2015 video where it tells how to do it:

https://www.youtube.com/watch?v=GtJoSOOJb8c

and here you can download the slides (click on "Build themes for Liferay "7", fill in the form and you will download the slides):

https://www.liferay.com/web/events2015/devcon/recap

Hope it helps...
thumbnail
Jamie Sammons, modifié il y a 8 années.

RE: Liferay 7 theme

Expert Publications: 301 Date d'inscription: 05/09/14 Publications récentes
I was able to get this to run on a Windows 7 test VM using the instructions found here: https://github.com/liferay/generator-liferay-theme

I looked into the error you are getting and it could be caused by some other factor such as if you are using a proxy server for internet access, local firewall or antivirus software.
Daniel Schlick, modifié il y a 8 années.

RE: Liferay 7 theme

New Member Envoyer: 1 Date d'inscription: 13/01/16 Publications récentes
Jamie Sammons:
I was able to get this to run on a Windows 7 test VM using the instructions found here: https://github.com/liferay/generator-liferay-theme
.

I create a new styled theme based on this manual. But after deployment the theme looks like it has no css rules also the navigation is just a list without the option panel.
thumbnail
Olaf Kock, modifié il y a 8 années.

RE: Liferay 7 theme

Liferay Legend Publications: 6403 Date d'inscription: 23/09/08 Publications récentes
Daniel Schlick:
I create a new styled theme based on this manual. But after deployment the theme looks like it has no css rules also the navigation is just a list without the option panel.


Just to rule out the obvious: Do you have custom CSS rules, or did you just create a _styled theme. This looks a lot like the basic theme. _styled does not mean that it already looks like a ready-to-go-theme. In fact, it doesn't have no CSS - look at the title bar (or is it still called dockbar in 7?): There's quite a bit of style already there. It's just not ready to be used on public sites, you'll have to create more CSS on top of it.
thumbnail
David H Nebinger, modifié il y a 8 années.

RE: Liferay 7 theme

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
That has always been how the themes have worked.

If you want a theme to inherit from classic, you must take the steps to make that happen, it will not be the default.

Classic is appropriate for a certain set of sites, but it is not the right one for all. _styled sets a foundation for styling a site just as you need and is the appropriate starting point.
thumbnail
Jack Bakker, modifié il y a 7 années.

RE: Liferay 7 theme

Liferay Master Publications: 978 Date d'inscription: 03/01/10 Publications récentes
Yeah, just like with previous versions, it is a great learning exercise in v7 to learn from the classic theme in a hands-on way

generate a new my-theme ( yo liferay-theme ) and then copy files into my-theme/src from classic src (https://github.com/liferay/liferay-portal/tree/master/modules/apps/foundation/frontend-theme/frontend-theme-classic/src ) and then deploy it ( gulp deploy ) and then tweak to explore...
thumbnail
venky yuvan, modifié il y a 6 années.

RE: Liferay 7 theme

New Member Publications: 8 Date d'inscription: 21/04/17 Publications récentes
Riccardo Torfetti, modifié il y a 5 années.

RE: Liferay 7 theme

New Member Publications: 2 Date d'inscription: 15/05/18 Publications récentes
Juan Gonzalez:
Seems there isn't any Developer Network documentation yet,

but here you have the Devcon 2015 video where it tells how to do it:

https://www.youtube.com/watch?v=GtJoSOOJb8c

and here you can download the slides (click on "Build themes for Liferay "7", fill in the form and you will download the slides):

https://www.liferay.com/web/events2015/devcon/recap

Hope it helps...


Hello. I'm trying to make a theme for Liferay.
Unfortunately link to slides no longer works. Could you put it back please?
Thank you!
thumbnail
Wouter Vernaillen, modifié il y a 5 années.

RE: Liferay 7 theme

Junior Member Publications: 80 Date d'inscription: 06/06/09 Publications récentes
Riccardo Torfetti:

Hello. I'm trying to make a theme for Liferay.
Unfortunately link to slides no longer works. Could you put it back please?
Thank you!


Hi Riccardo,
There's no need for that presentation any more as it is now fully documented: Introduction to themes
Riccardo Torfetti, modifié il y a 5 années.

RE: Liferay 7 theme

New Member Publications: 2 Date d'inscription: 15/05/18 Publications récentes
I was hoping for a tutorial, but thanks.
Lee Jordan, modifié il y a 3 années.

RE: Liferay 7 theme

Expert Publications: 449 Date d'inscription: 26/05/15 Publications récentes
Sorry building themes is too hard in Liferay. I have 20 years experience of front end code.

"If you want a theme to inherit from classic, you must take the steps to make that happen, it will not be the default."

​​​​​​​Give the people the option of classic in the theme generator and let's move forwards.