Questions tagged [liferay-theme]

Liferay themes are hot-deployable plugins that help in customizing the layout and overall look & feel of portal pages. Liferay theme use different template engines to customize the page layout and styles of the portal.

Liferay Themes are used to customize the default layout and look & feel for portal pages.

They are hot-deployable plugins.

Themes use and templates to customize the styles and layout of the portal pages.

They can be either applied to single page, a single site or to the entire portal.

Themes in Liferay are really powerful, as you can do:

  • you can call different portal services and custom services from the theme.
  • include OOTB or custom portlets dynamically in the theme, i.e. as soon as you apply the theme to a page it will render the portlet included in the theme, you don't have to add the portlet from the add menu.
  • A lot of configurable settings can be built using the theme for advance control.

Resources

  1. Creating Themes and Layout
  2. Configuring Look and Feel of Liferay Applications
377 questions
3
votes
2 answers

Changing columns to rows layout with Bootstrap

Good morning! I'm doing a layout in which I have 4 columns. In these 4 columns first is the image, just below your title and description. This aspect must be kept in desktop and tablet mode. At this point I have no problem CODE:…
JMF
  • 1,083
  • 7
  • 17
3
votes
3 answers

Liferay Freemaker: how to get Request object in template?

I am using Liferay 6.2 and freemaker for web content templates. I need to get request object in template. When I try to use ${Request.getRequest()} it throws error Expression Request is undefined. Full code here <#assign…
jahra
  • 1,173
  • 1
  • 16
  • 41
3
votes
1 answer

What is the correct way to import an ADT

I have been following the steps outlined here: https://dev.liferay.com/develop/tutorials/-/knowledge_base/6-2/importing-resources-with-your-themes My custom structures and templates are being imported. The problem that I have is that I also want to…
LoLo007
  • 41
  • 5
3
votes
2 answers

How can we create the back button in liferay

Can any one tell me how can I create the back button in my portlet. Are there any existing tags to create the back button which looks like as shared below.
Vinod
  • 2,263
  • 9
  • 55
  • 104
3
votes
1 answer

Override liferay-ui navigation taglib

Problem I'm implementing a css component library within a Liferay theme, adding the css to the custom.css file. I've hit an issue with implementing the changes to the navigation which is currently using a taglib liferay-ui:navigation to generate and…
br3w5
  • 4,403
  • 5
  • 33
  • 42
3
votes
3 answers

How to know if a page is private or public in Liferay theme?

As the tittle says... How to know if a page is private or public? I need to implement some logic in a velocity file from my custom theme only for private pages. I found this page Access Objects from Velocity and it seems very useful but I need some…
3
votes
1 answer

Instanciable portlets and instance ids

I have following questions on instatiable portlets. 1) Will it service server restart. Lets say I added portlet1 to page1. If I restart the server portlet1's portletId will be same with respect to page1. (Basically with same instance id) 2) Lets say…
user1927808
  • 577
  • 1
  • 10
  • 23
3
votes
1 answer

Deploying portlet with a liferay on cloudbees

I succed to deploy a liferay 6.1.1 on cloudbees thanks to this tutorial : http://blog.cloudbees.com/2011/09/15-minutes-to-liferay-on-cloudbees-paas.html Now, I'm asking how to deploy themes and custom portlets in this environment is there a way, or…
Julien Deruere
  • 770
  • 1
  • 7
  • 11
3
votes
1 answer

How to add an existing portlet to Web Content Display using Velocity templates

I want to create a new page using Web Content Display with Velocity Templates and Structures. On my page I would like to have multiple tabs and on each tab needs to be added programatically from a template of an existing portlet. I know how to add…
user1694543
  • 31
  • 1
  • 2
3
votes
2 answers

Using custom services or liferay services in liferay themes (velocity templates)?

How to use custom services method in liferay themes in velocity files like init_custom.vm, portal_normal.vm etc. I see liferay provides a lot of variables of helper utility classes like $portalUtil for PortalUtil, $getterUtil for GetterUtil and so…
Prakash K
  • 11,669
  • 6
  • 51
  • 109
3
votes
1 answer

how to get color scheme in Liferay

is it possible in Liferay to get programmatically color scheme of theme? I have to include different icons depending of current color scheme. I know that it is possible to do it by using css but in my issue it is better to get color scheme in java…
Misha
  • 828
  • 10
  • 23
2
votes
2 answers

Changes to init_custom.vm not showing up

I'm building a new Liferay theme and being crushed by this problem. When I make changes to the init_custom.vm, the only possible way for me to see the changes is to restart Tomcat. When I make other changes to my theme, such as editing my CSS or…
Rob Gonzalez
  • 579
  • 1
  • 6
  • 19
2
votes
1 answer

Building a Liferay theme fails with an error "Cannot find module 'liferay-font-awesome'"

Building a Liferay theme fails with an error Cannot find module 'liferay-font-awesome'. What's wrong and how can I fix the issue? $ mkdir liferay-workspace $ cd liferay-workspace/ $ blade init --liferay-version portal-7.4-ga6 $ blade server init $…
haba713
  • 2,465
  • 1
  • 24
  • 45
2
votes
2 answers

Liferay Theme Creation : Error During gulp build and gulp deploy

After installing all the necessary packages, I am trying to build a theme for Liferay 7.3 version. I have installed all the packages needed such as nodejs, npm, gulp ad ruby (sass and compass). After executing gulp build, I am getting the following…
Vikrant singh
  • 433
  • 1
  • 7
  • 25
2
votes
1 answer

In a Liferay theme, what is the difference between 'clay/base' and 'clay/atlas'

I am starting to develop Liferay themes and the documentation seems to show that you should import 'clay/atlas'. I have an import for 'clay/base' instead: @import 'clay/base'; Can someone shed some light on what the difference is and why I would…
1
2
3
25 26