Search Results

Knowledge Base 1395
Sort By
Resource Type
Applicable Versions
Deployment Approach
Capability
Feature
Using Zapier to Sync Object Data with Google Sheets
Introduction You can use Liferay Objects with data integration tools to create automated tasks for syncing Object data with external services. These tasks are triggered using webhooks and can connect to Google applications, Microsoft Office, and more. This recipe guides you through the...
Designing and Displaying Reusable Navigation Menus
Navigation menus for a site are typically tied strictly to a site's page hierarchy and structure. The Navigation Menus feature in Liferay is powerful because it enables you to create navigation menus that are decoupled from a site's page hierarchy. Liferay navigation menus can be driven...
Integrate Okta with Liferay DXP using OpenID Connect
Introduction This recipe guides you through the steps to integrate Okta, your Identity Provider (IdP), with your Liferay environment using OpenID Connect. Prerequisites Okta Dev account Liferay DXP environment Administrative access to Okta Admin Console Administrative access to Liferay's...
Building Multi-Step Business Forms
Introduction This recipe guides you through the basic steps to build a multi-step form. Prerequisites Liferay DXP environment An object definition with fields A user who has access and control to create and manage objects, display pages, and the ability to edit pages Steps Open the...
How to Configure PaaS to Push Metrics to Dynatrace Account
Issue What is the correct way to configure our new PaaS environment to push metrics to a Dynatrace account? Environment DXP 7.4 Resolution Set the following environment variables in LCP.json  LCP_PROJECT_MONITOR_DYNATRACE_TENANT → A string of characters that is part of the URL (prefix)...
Finding your Liferay Cloud location via egress IP address
Issue The ingress IP address of our Liferay Cloud instance shows a different location than expected.   Environment Liferay PaaS   Resolution The ingress IP address does not reflect the actual location of the specific regional data center where your environment is hosted. The ingress IP...
How to prevent a full day event from displaying on two days in the calendar's month view
Issue When creating an all-day event that spans from 12:00 AM on one day to 12:00 AM on the next day, the event appears on both days in the calendar month view. How can I ensure the event is only visible on the first day? Environment Liferay DXP 7.4+ Resolution In the example, the event...
How to deploy a custom JAR to the shielded-container-lib directory in my PaaS Environment
Issue I would like to know how to deploy a custom JAR to the shielded-container-lib directory of Tomcat in my PaaS environment. Environment Liferay PaaS Resolution Follow these steps: In your Liferay Workspace, create the following directory structure:...
Discrepancy in Batch Behavior: headless-commerce-admin-account vs. headless-admin-user
Issue We’ve encountered a discrepancy in how batch operations work for Accounts between the headless-commerce-admin-account API (now deprecated) and the newer headless-admin-user API. Previous Behavior (headless-commerce-admin-account) We used the POST /v1.0/accounts/batch endpoint to...
How can I disable the Commerce Wish List creation
Issue I have an issue with the commerce wish list table in the database. The table has lots of entries and it is growing more, even though we do not use the wish list feature. I would like to remove these entries and disable the creation of the wish lists. Environment Liferay DXP 7.1+...
Sorting Structures by Name in Liferay DXP
Issue The order of Structures when creating Web Content seems to be random. The structures are not sorted alphabetically or by modification date. Environment Liferay DXP 2024.Q2 Resolution Web Content Display widget Go to Control Panel > Instance Settings > Content and Data > Web Content...
Sending Individual Emails for Workflow Notifications
Background In a workflow, email notifications are sent to all users in a role as a single email with all recipients in the "To:" field. Objective The goal is to send individual emails to each of the recipients. If individual emails cannot be sent, a single email sent to a single...
How can I use environment variables to get the URL of other CX micro-services?
Issue Currently we can access the dynamic urls for DXP using the following variables. "LIFERAY_ROUTES_CLIENT_EXTENSION": "/etc/liferay/lxc/ext-init-metadata", "LIFERAY_ROUTES_DXP": "/etc/liferay/lxc/dxp-metadata" Is there a way we can access the same URLs for other CX micro-services?...
How to Redirect a non-www Domain to a www Domain in Liferay DXP
Issue How can I redirect traffic from my non-www domain (e.g., example.com) to my www domain (e.g., www.example.com)? Environment Liferay DXP 7.4 Quarterly Releases Resolution You can configure a redirect using Liferay's pattern redirect feature: Access your website and navigate to Site...
Setting a Site-Specific Display Page Template for a Web Content created from a Global Structure
Issue You are using a Web Content Structure that was created in the Global site so it can be shared across multiple sites. You need to set a default Display Page Template (DPT) for this structure, but you want the default to apply only to content created within one specific site, without...
Updating Parent Object Fields from Child Object Actions
Issue How to update a field's value in the parent object when a new child instance is created using object actions of the child object. Environment Liferay DXP 7.4+ Resolution Use a Groovy script Action triggered by onAfterAdd or onAfterUpdate on the child object to update the parent...
How to Exclude User Names (userName field) from Search Queries in Liferay
Issue We want to exclude the userName field from search queries. This is to prevent irrelevant search results based on user names. For instance, if a user's name contains a common search term, Liferay will return content and documents created by that user, even if the content itself does...
Dynamic Blueprint parameters with Search API
Issue Blueprints offer static filtering by field values, but a dynamic approach is needed where search fields enable filtering based on user-provided values for specific structure fields, Is possible to provide custom parameters to Search Blueprints? How can I create a search experience...
Custom Widget Gets Rendered Twice
Issue After defining a Custom Element widget and placing it on a page, it is observed that the widget is loaded twice. Sometimes this happens so fast that it is unnoticeable, other times a couple of seconds pass between the two renders. In the browser console, the double rendering is...
Is integration of mTLS possible in Liferay?
Issue We are required to use mTLS (Mutual Transport Layer Security) for certain requests Is it possible to integrate mTLS with Liferay? Environment DXP 7.4 Quarterly Releases Resolution Yes, it is possible to make the integration with mTLS Server side setup: Ensure the Identity Manager's...
I can select a Display Date in the past for a Web Content
Issue After creating a Web Content, when I go to the Properties tab > Schedule section, I can select a Display Date in the past. No error message appears when I save the Web Content with a past Display Date. Environment Quarterly Releases Resolution This is currently the expected...
How to Determine if JUnit is installed on Liferay Cloud
Issue How to determine if JUnit is installed on Liferay Cloud? How do users install JUnit on Liferay Cloud and integrate it with Jenkins? Environment Liferay Cloud Resolution JUnit is pre-installed on Liferay Cloud environments. To verify the JUnit installation and version within a...
How to clear the data folder of Glowroot in Liferay PaaS
Issue How to clear the data folder of Glowroot in Liferay PaaS. Environment Liferay DXP 7.4 Liferay PaaS Resolution To clear the data folder through the Glowroot UI. Follow the below steps: 1. Visit the site and log in. 2. Append /o/glowroot to the end of the site’s URL. For example, if...
Is it feasible to hide fields in the upload Section of Document and Media?
Issue Is there an OOTB feature to hide the following fields in the Document and Media Upload section? Document Type Display Page Categorization Expiration Date Friendly URL Related Assets Permissions Environment Liferay DXP 7.4 Resolution No, there is no OOTB feature available to hide...
How to change the generated OTP from alphanumeric to numeric in multi-factor authentication?
NOTE: The following resolution requires customization and should only be implemented at the discretion of your team. Liferay Support will not be able to assist with designing or implementing customizations. Issue The Multi-Factor Authentication (MFA) one-time password (OTP) is generated...
How to create Charts in Quarterly Versions
Issue The Chart Tag Library was removed in 2023.Q4 with no direct replacement. I would like to know how to create charts in a Liferay version higher than 2023.Q4. Environment 2023.Q4+ Resolution On GitHub, you can find an example of how our developers create charts in e.g. Content...
Vulnerability CVE-2024-52046 in Liferay DXP
Issue Is Liferay vulnerable to the vulnerability described in CVE-2024-52046? Environment Liferay DXP 7.3 and above Resolution Liferay uses the affected Apache Mina library (`mina-core`) only in LDAP-related code. If LDAP is not enabled, Liferay is not vulnerable. Apache Mina is used for...
Auditing the remote client IP address changed after upgrade
Issue After upgrading from Liferay 7.0 to a more recent Quarterly Release we are facing changes to the Audit_AuditEvent table, which was storing, in the clientIP column, the content of the 'X-FORWARDER-FOR' HTTP request header, which is meant to track the remote origin of the request....
Customizing Email Notifications in Forms application after upgrading to Liferay Quarterly Release
Issue In previous versions, we were customizing the email notifications sent by Forms application following the instructions of these articles: How can I configure or customize the look and content of email notifications sent after a form entry has been submitted? Is the Email...
Is possible to sort Object entries in a Collection Display Fragment?
Issue I'm using a Collection Display fragment to show objects. I need to apply some order to the list. Is this possible? Environment Liferay DXP 2024.Q4 Resolution Currently, the only way to sort object entries (with Collection Display) would be by creating a Dynamic Collection and use...
What URLs can be used to access my workflow tasks
Issue You may need to access a user's tasks without including their name in the URL or by explicitly including it. Environment Quarterly Release DXP 7.4+ DXP 7.3 Resolution Without User Identifier: It is possible to access my user tasks without including their identifier in the URL. For...
How to display form entries data which is submitted through form in user interface?
Issue Is there any way to view form entries in a grid format by clicking a button labeled "View Form Entries." ? Environment Liferay DXP 7.2 Resolution In Liferay DXP 7.2, the functionality to display form results in a grid format is unavailable. This feature was introduced in Liferay...
CKeditor extra plugins
Issue I would like to add extra plugins to CKeditor. I would like it to work in web content translator also. Environment Liferay DXP 7.3+ Resolution Go to https://github.com/balazsletai/sample-journal-editor-config-contributor/tree/master Follow the instructions in the README file  ,...
Including External JavaScript Libraries in Fragments from Documents and Media
Issue Need to use external JavaScript libraries that are uploaded to Documents and Media in fragments. Environment Liferay DXP 7.4 Resolution To include external JavaScript libraries stored in Documents and Media within a fragment: Upload your JavaScript (.js) and CSS (.css) files to...
How to check current Liferay Version in SaaS environments?
Issue Users in SaaS environments need to know what version of Liferay they are running. Environment 2024.Q2 LXC Resolution To check the current Liferay version, navigate to Control Panel > Instance Settings and look for the Liferay version header., knowledgeArticleType: howTo, legacy:...
Web Content Display scope site selector
Issue I cannot select content from other site different than Global and the current one. Environment Liferay 7.3, 7.4, Quarterly Releases Resolution The observed behaviour is the expected one: there is no current way of selecting a different site from the current one, Global or those...
Unable to redeploy a module
Issue After deploying a module and removing it via UI or tomcat bundle, it doesn't redeploy successfully. It gets stuck in a "Processing" stage.  Environment Quarterly Release DXP 7.4+ Resolution This is the expected behavior. When the module is uninstalled via the UI, the module gets...
How to disable API endpoint (/o/api) for logged in users?
Issue Need to disable API endpoint (/o/api) for logged-in users. Environment Liferay DXP 7.3 Liferay DXP 7.4 Resolution To disable API Explorer, please navigate to Configuration > System Settings > Platform > Third Party > System Scope > API Explorer > deselect 'Enable API Explorer'.,...
Is it possible to offer both SAML and OIDC as SSO options?
Issue Both SAML and OpenID Connect(OIDC) can be configured on the same Liferay instance. However, the option to authenticate using OIDC is missing whenever SAML is enabled. Is it possible for a user to select either SSO methods to log in?  Environment DXP 7.4 Resolution The missing...
Can URLs be localized in Navigation Menu and in "Link to URL" Layout Type ?
Issue We would like to have the possibility to use different external urls for different languages in the Navigation and menu elements and as Layout Type "Link to URL" in "Site builder -> Pages" For example: HU: www.google.hu EN: www.google.com Environment Liferay DXP 7.0+ Resolution...
Delay in "Add to Cart" Button Rendering on Slow Internet Compared to Other Platforms
Issue The "Add to Cart" button takes time to appear when using a slow internet connection in comparison to other platforms like Amazon, the button is immediately visible, although it remains non-functional until fully loaded. Observed Behavior: When accessing the 'Catalog' page with slow...
Getting a web content in scheduled status using the headless rest API
Issue We are using the Liferay Headless API method getContentStructureStructuredContentsPage of  headless-delivery /o/headless-delivery/v1.0/content-structures/<structure-id>/structured-contents To get a web content filtering by a custom field of the structure: contentStructureId: <id...
Enabling both Liferay's default login and SAML login so that users can use either option
Issue I would like to configure and enable SAML login while also having Liferay's default login available to users so that they can have two options for logging in. Environment DXP 7.4+ Quarterly Release Resolution This is the expected behavior for now. Liferay will abdicate to SAML...
Wikis with friendly URL
Issue When accessing a wiki article, the URL looks something like this:...
HTML elements disappear when creating new Object entries
Issue An embedded video (iframe) and other HTML elements within a Rich Text field of an Object are not persisting after saving a new entry. Environment Liferay DXP 2024.Q2 Resolution This is an expected behavior due to the AntiSamy sanitizer. This tool will remove all iFrame and...
Avoid last name field being mandatory when creating users
Issue When creating new users, some fields (such as first name and last name) are mandatory, marked with a red asterisk. How can one specify the mandatory fields? Environment Quarterly Release 2024.Q1, 2024.Q2, 2024.Q3 Resolution A while back there was the portal property...
Access a site other than the default one without /web
Issue By default, it is possible to access the pages of the website included with the default installation both with and without /web. This article addresses the need to change the site where this behavior is required, allowing access to the pages of a specific site without /web....
How can we translate the Custom Heading of a Custom Facet?
Issue We have a search page with several facets. One of them is the "Custom Facet" widget. How can we translate the Custom Heading of a Custom Facet, to display in multiple languages on our site? The configuration page of this custom facet only allows for single-language input, so it is...
I cannot use the PUT method of the Object API's Batch endpoint with External Reference Codes (ERC)
Issue It is not possible to mass update a custom object's entries if: using the PUT method of the object's batch API endpoint and the External Reference Code (ERC) is given instead of the object entry's ID. The operation fails with NullPointerException: Cannot invoke...
How to remove or deselect the theme for a specific page?
Issue The user has deployed a custom theme as a WAR file, and it is configured as the default. As soon as they create a new page, the same theme is applied, but they want to remove or deselect the theme for that page. Environment Liferay DXP 7.4 Quarterly Release Resolution Users may...
Creating a New User in Liferay Whenever a Liferay Object Entry is Added with Default Site, Role, and Password
Issue Creating a new user in Liferay whenever a new entry is created in the Liferay Object with a default Site, Role, and password? Environment Liferay DXP 7.4 Resolution In Liferay objects, object action defines custom business logic that you run manually or automatically for object...
How to Customize Webserver Log Format
Issue How can I customize the log format of the webserver service? Environment Liferay PaaS Resolution To tailor the log format of your webserver service to your specific needs, you can adjust the following environment variable: LCP_WEBSERVER_LOG_FORMAT Additional Information Web Server...
Use the Liferay server to send emails upon Form submission on your Cloud environment
Issue Liferay sends emails upon user-related events, such as creating new users or updating their passwords. Is it possible to use such an email capability to send emails from form submissions? Since Liferay can already trigger emails for some events, why and how is it possible to use...
Enabling real-time antivirus scanning without asynchronous background scans
Issue We would like to enable real-time antivirus scanning for uploaded files but disable asynchronous background scanning of the document library. The issue arises because: Enabling dl.store.antivirus.enabled=true triggers both real-time scanning and background scanning of the document...
Automated download of PaaS backups
Issue we want to set up an automated download of the DXP-cloud-backup. To connect to the server we have to run the following procedure: - lcp auth token  - lcp remote - lcp shell Please can you help us finding the required token? Alternatively, please inform us if there is another way of...
Mitigating Cloud Backup Breaking Change
Issue The Liferay Cloud Backup image version 5.14.0 contains a breaking change that removed support for downloading and restoring backups created with client-side encryption. The goal was to release this change in a major version but it was mistakenly flagged for 5.14.0. Backups created...
I cannot disable the execution of Groovy scripts in Server Administration
Issue Despite disabling Groovy scripting in System Settings > Security section > Script Management, Administrators are still able to execute Groovy scripts in the Server Administration > Script tab. Environment 2024.Q2+ Resolution The above described behavior is the intended behavior The...
Author information that is displayed in the forum posts
Issue When users send messages or create threads in the discussion forum, certain information about them (name + surname) is displayed. This article covers the need to change this behavior through a customization and display the user's screen name instead of their full name. Environment...
JavaScript URLs are not updating when Staging is enabled
Issue With staging enabled, JavaScript URLs, referencing content in Documents and Media, are not updating when a page is published from Staging to Live For example: JS URL on Staging: src:'http://localhost:8080/documents/d/guest-staging/astronaut-png' JS URL on Live:...
Is there an alternative to the 'Liferay.Util.selectEntity' function?
Issue After upgrading to 2024.Q2+, Liferay.Util.selectEntity does not work anymore. It has been removed, according to the 2024.Q2 Breaking Changes. Is there any replacement for it? Environment Liferay DXP 2024.Q2+ Resolution Although it has been removed as of 2024.Q2, the replacement was...

Showing 1 to 60 of 1,394 entries.