Delete Liferay Web Content Articles Based on Structure ID with Groovy Script
If you need to delete all web content articles associated with a specific structure ID in Liferay using Groovy script, follow this guide. Deleting Web Content Articles by Structure ID Groovy script To delete articles associated with a specific structure ID, use the following Groovy script: Steps to Execute Best Practices and Warnings Also Read: […]
Count Web Content Articles by Structure ID in Liferay using Groovy script
In Liferay, you might need to count the number of web content articles associated with a specific structure ID. This guide provides a step-by-step method using a Groovy script. Counting Web Content Articles by Structure ID The following Groovy script counts the number of web content articles associated with a specific structure ID: Steps to […]
How to Add Language Key in Liferay: JSP, Fragments, and Templates
In Liferay, you can add language key in liferay in JSP, Fragments, and Templates (e.g., FreeMarker) to make your application multilingual. Here’s how to do it in each case: Adding Language Key in JSP In a JSP file, you can use Liferay’s <liferay-ui:message> tag to retrieve and display the language key value. First you will […]
How to increase session timeout in Liferay?
To increase session timeout in Liferay DXP, you need to adjust the session timeout settings in the portal-ext.properties file and the web.xml file. Here’s how you can do it: 1. Update the portal-ext.properties file 2. Update the web.xml file 3. Restart Liferay After making these changes, you will need to restart your Liferay server for […]
How to deploy client extension in Liferay?
To deploy client extension in liferay follow these steps: This will deploy the theme-css client extension in Liferay. Make sure to replace theme-css with the name of your client extension if it’s different. Read More: Mastering Front-End Client Extensions in Liferay DXP
How can I embed a widget in another widget template in Liferay?
You can embed a widget in another widget template in Liferay by using the liferay_portlet[“runtime”] macro. Here’s an example of how you can do this: In the above code, replace <%=innerWidgetPortletId%> with the actual portlet ID of the inner widget. For example, if you’re embedding the Sort Portlet, your code would look like this: This will embed the Sort […]
How to Configure Liferay Tomcat to Start on Ubuntu Server Boot Automatically?
To ensure that your Liferay Tomcat server starts automatically when your Ubuntu server boots, you can use the @reboot attribute in the crontab. Here’s how you can set it up: Now, every time your Ubuntu server restarts, the Liferay Tomcat server will start automatically, ensuring that your web applications are always available.
How to Change Liferay admin password using MySQL
Follow the below steps to change Liferay admin password using MySQL:
How to find the jar version in gogo shell in Liferay?
To find the JAR version in Gogo Shell within Liferay, you can follow these steps: Remember that the Gogo Shell provides various commands for managing bundles, services, and components in Liferay. Feel free to explore other gogo shell commands as needed! 🚀
How to embed web content in theme (FTL)
Add the below code in your FTL from to embed web content in theme: