- After creating a new regular role, we are no longer able to get to:
Dynamic Data Mapping > Dynamic Data Mapping Structure
or to Dynamic Data Mapping > Dynamic Data Mapping Template
- So, the "Dynamic Data Mapping" menu entry no longer exists in the left menu or in the search, so the permissions for "DYNAMIC DATA MAPPING STRUCTURE" and "DYNAMIC DATA MAPPING TEMPLATE" are not reachable.
- These were available in 6.2
- 7.2+ (probably 7.0 and 7.1 as well)
This is a current limitation introduced time ago by
LPS-55497that removed DDMTemplate and DDMStructure from DDM.
- There is a plan to revamp the administration of the Widget Templates by creating a separate application that allows a site administrator to manage the widgets available within the site. This means that these permissions might not be needed in the future or will be changed. See https://issues.liferay.com/browse/LPS-83325
In the meantime, there are twopossible workarounds to apply the discussed DDM permissions to any role.
A) Through the UI:
- Open the Role on the UI which needs the permissions.
- Gather the roleId from the URL of the page. (
- Open the User role.
- Under Define Permissions, look for the "Dynamic Data Mapping: Add to Page" permission, right click on "Dynamic Data Mapping" and open the link in a new tab or window.
- In the URL switch the User role's id to the custom role's id (the one you obtained at step 2) - there are 2 appearances of the id in the URL. (After this, you should see the custom role's DDM permissions.)
- Assign the required DDM permissions to the custom role.
B) With a script:
- Gather the instance's id either from the database (company table) or from Control Panel > Virtual Instances.Open the Role on the UI which needs the permissions.
- Gather the roleId from the database (role_ table) or from the URL of the role's page (
- In the attached script (AddDDMPermissionsToRole.groovy), fill the companyId and roleId variables with the values obtained above.
- Execute the script under Control Panel > Server Administration > Script.
Conteúdo Excluesivo para Assinantes
Uma Subscrição do Liferay Enterprise fornece acesso a mais de 1.500 artigos que incluem práticas recomendadas, solução de problemas e outras soluções valiosas. Faça login para obter acesso completo.Entrar