You need to add your portlet.properties under resource folder.
portlet.properties
custom.liferay.base.url = "https://www.liferay.com/"
To read it in your java class
You need to import
## using ProxyPass, when p_p_id=com_liferay_login_web_portlet_LoginPortlet , then remove p_p_state=maximized | |
RewriteEngine On | |
RewriteCond %{QUERY_STRING} ^(.*)&?p_p_id=com_liferay_login_web_portlet_LoginPortlet&?(.*)$ | |
RewriteCond %{QUERY_STRING} ^(.*)&?p_p_state=[^&]+&?(.*)$ | |
RewriteRule ^/?(.*)$ /$1?%1%2 [L,PT] |
var ua = navigator.userAgent, | |
clickEvent = (ua.match(/iPad/i) || ua.match(/iPhone/i)) ? "touchstart" : "click"; | |
//28-11-2018 Aggiunta controllo posizione aiutaci a migliorare la pagina | |
// ### | |
var HM_nuovoHeader = false; | |
$(document).ready(function () { | |
if (window.location !== window.parent.location) { | |
$("#header-navbar").addClass("hidden"); |
You need to add your portlet.properties under resource folder.
portlet.properties
custom.liferay.base.url = "https://www.liferay.com/"
To read it in your java class
You need to import
<div> | |
<pre> | |
<#list portletPreferences?keys as preference> | |
<#if portletPreferences[preference] ??> | |
<#assign mapValues = portletPreferences[preference] /> | |
<#list mapValues as value > | |
${preference} = ${value}<br /> | |
</#list> | |
</#if> | |
</#list> |
<#assign TITLE = .vars['reserved-article-title'].data /> | |
<#assign DISPLAYDATE = .vars['reserved-article-display-date'].data?date('EEE, dd MMM yyyy HH:mm:ss Z') /> | |
${DISPLAYDATE?string["dd MMMM yyyy"]} | |
<button type="button" class="btn btn-secondary btn-sm"> | |
<@liferay_ui["message"] key="read-more"/> | |
</button> | |
[ | |
{ | |
"dateTime": 1558606273941, | |
"entry": "Box Temperature", | |
"entryType": "String", | |
"gravityId": "4", | |
"gravityTypeData": { | |
"additional": "0", | |
"shortDescription": "Info" |
[ | |
{ | |
"expanded": true, | |
"children": [ | |
{ | |
"label": "TEMP_DU1", | |
"id": "9", | |
"type": "check", | |
"leaf": true | |
} |
import com.liferay.util.mail.MailEngine; import javax.mail.internet.InternetAddress; | |
MailEngine.send(new InternetAddress("[email protected]"), | |
new InternetAddress("[email protected]"), | |
"your-appointment-has-been-scheduled", | |
"HOLA", false); |
import com.liferay.util.mail.MailEngine; | |
import javax.mail.internet.InternetAddress; | |
MailEngine.send(new InternetAddress("[email protected]"), | |
new InternetAddress("[email protected]"), | |
"test email sub", "HOLA, this is the body", false); |
[INFO] Eclipse Milo Build Tools ........................... SUCCESS [ 1.591 s] | |
[INFO] Eclipse Milo - OPC-UA (IEC 62541) .................. SUCCESS [ 2.323 s] | |
[INFO] opc-ua-stack ....................................... SUCCESS [ 1.592 s] | |
[INFO] stack-core ......................................... SUCCESS [ 21.689 s] | |
[INFO] stack-client ....................................... SUCCESS [ 1.886 s] | |
[INFO] opc-ua-sdk ......................................... SUCCESS [ 1.695 s] | |
[INFO] sdk-core ........................................... SUCCESS [ 5.960 s] | |
[INFO] bsd-parser ......................................... SUCCESS [ 1.108 s] |