How to Fetch a Category Name Using Category ID in Liferay with FreeMarker
In Liferay, categories help organize and classify content, making it easier to manage and retrieve. Often, you might have a category ID and want to fetch its name dynamically in a FreeMarker template. In this guide, we’ll walk you through the steps to achieve this using Liferay’s service locator. Understanding the Scenario Let’s say you […]
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 can I get unique ID of asset publisher?
You can use the portlet instance id for referring each asset publisher on the page. Now you will be able to get unique ID of asset publisher Here ${assetID} is the Asset publisher ID.
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 embed web content in theme (FTL)
Add the below code in your FTL from to embed web content in theme:
How to check Bootstrap version in Liferay DXP?
To check bootstrap version in Liferay DXP, follow the following steps:
What is the default jQuery version used in Liferay?
The default jQuery version used in Liferay DXP can vary depending on the specific version and any applied fix packs. Here are some details: Also Read: How to enable Jquery in Liferay Type jQuery.fn.jquery or $.fn.jquery in the browser console to display the current jQuery version in Liferay.
How to enable Jquery in Liferay
Steps to enable jQuery globally: