GET 70% Discount on All Products Coupon code: "Board70"
The default variables in a theme are defined in:
portal_normal.vm
init.vm
main.vm
variables.vm
Service Builder entities are defined in:
portlet.xml
liferay-portlet.xml
service, xml
web.xml
To start Liferay with developer properties:
Set the porta I.developer, mode property in portal-ext.properties to ''true"
Include portal-developer.properties during Java startup, or in portal-ext.properties
Navigate to Server Administration in the Control Panel and set the portal.developer.mode property to "true"
Copy portal-developer.properties from the portal's classes directory to the Liferay home directory and restart the server
To map a Service Builder entity to an existing database table in service.xml the entity name must match the database table name.
True
False
The recommended way to escape text is:
StringUtil.escape()
HtmlUtiI.escape()
DisplayUtil.escape()
JSPUtil.escape()
FormUtil.escape()
GetterUtil.escape()
If the expiration cache in portlet.xml is set to "-1":
The finder cache does not expire
Ehcache does not expire
The portlet cache does not expire
All of the above
To customize the default success message displayed by MVCPortlet:
Add a custom key to the SessionMessages object
Override the language key default-success-message in Language.properties
Provide a entry in liferay-portlet.xml
Pass a parameter called 'success'' in the ActionURL and map it to a custom language key
The method to get theme settings in a theme is:
$portalUtil.getSetting()
$theme.getSetting()
$layout.getSetting()
$themeDisplay.getSetting()
The method to embed a portlet in a theme is:
$theme.addPortlet()
$theme.runtime()
$theme.embedPortlet()
$theme.processPortlet()
The recommended way to automatically add tags when creating web content is to:
Create a model listener in a hook plugin and implement the onAfterCreate() method
Create a model listener in a hook plugin and implement the onBeforeCreate() method
Create an Ext plugin to extend and override JournalArticleLocalServicelmpI
Create a hook plugin and use a service wrapper to extend JournalArticleLocalService
TESTED 23 Feb 2025