Need to change template styles in Liferay

I want to change the appearance of liferay with css. I am very new to life. Can anyone give me any ideas for making changes. thanks in advance

+3
source share
5 answers

Slowly seems complicated, but it's not so bad .....

1a) download and unzip sdk plugins for the liferay version you want to use. All downloads are on the sf page http://lportal.sourceforge.net/

1b) make sure you have the latest ant version and the JDK version that matches your liferay version (1.5.x or 1.6.x)

2) . "" script ( linux mac .sh)

c:\liferay\plugins\themes > "My Theme Description" linux/mac $ > ./create.sh my-name "My Theme Description"

my-name-theme _diff.

, . _diff FOLDER. ( WEB-INF)

, , "ant compile" my-name-theme, sdk .war "dist" sdk,

... sdk, , , "ant deploy" liferay .

, "look and feel" "manage pages".

: custom.css.... .

: CSS, .... Dev-, head, _diffs/css . href= ":///...../_diffs/custom.css". , , , . , , .

liferay.com , " ", , .

+3

LifeRay , , . , CSS , , XHTML.

, : D

+1

IMO liferay . . , .

  • _diff AFAIK, , . css tomcat/themename. _diff . CSS C:\Liferay--6.1.0 \-7.0.23 \WebApps\\CSS\
  • , , liferay Sass. , Sass "deploy", , , , . . ruby ( Windows, Mac ) > Compass > . " ". bothe scss css IDE. "Compass Watch" scss css. css css firebug - chrome/safari.

, , firebug/web-.

, - , , CSS/JS ( , Scss), .

+1

mvn archetype:generate

then select "liferay-theme-archetype (Provides an archetype for creating Liferay themes.) et voilà you are ready to customize your theme.

Best practice recommends that you do all your own themes using only the custom.css file, and that you do not override any of the templates, if absolutely necessary. This will simplify future updates, as you don’t have to manually change your templates to add support for new Liferay features.

Expand the newly created theme using

mvn clean package liferay:deploy

0
source

Source: https://habr.com/ru/post/1728799/


All Articles