Posts

Showing posts from 2020

Theme Development: fix Node Sass could not find issue

  Theme Development: fix Node Sass could not find issue Prerequisites The following error may occur during  Theme Development  : "Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 10.x" (after running gulp build command) Fix Run npm rebuild node-sass  command, and the issue should go away. Enjoy 😏

Liferay Search Container Example

Or how to implement a custom search container in Liferay Overview   Search Containers are used in Liferay to display the table data. This article shows a simple example of how to implement a custom search container.  Example < liferay-portlet :renderURL varImpl ="iteratorURL" /> < liferay-ui :search-container total =" <%= ProjectLocalServiceUtil. getProjectsCount (scopeGroupId) %> "                              delta ="10"                              emptyResultsMessage ="no-projects-found"                              iteratorURL =" <%= iteratorURL %> " >     < liferay-ui :search-container-results             results =" <%= ProjectLocalServiceUtil. getProjects (scopeGroupId, searchContainer.getStart(), searchContainer.getEnd()) %> " />     < liferay-ui :search-container-row className ="com.sample.sb.model.Project" modelVar ="project" keyP

Liferay 7: Display Page for Journal Article

Image
 Setup a Display Page for a Web Content (Journal Article) in Liferay 7 Manual and Programmatic Approach Overview You may need to define the JournalArticle display page to configure the layout, where the article should be displayed (for example, when clicking on the “Read More” link in Asset Publisher). Of course, you may do this manually in article configuration. But, if you create articles programmatically, you’ll need to set up the display page programmatically also. This article will cover both approaches. Manual setup To set up the DisplayPage manually - go to the Edit Article page (Site Menu -> Content & Data -> Web Content, and click on the article you need).  On the sidebar to the right find the “Display Page Template” section, choose “Specific Display Page Template”, and click the “Select” button. In the popup, find the page you need (either on Public Pages or Private Pages tab): Note: only those pages are available for selection, which have an