3
我有兩個公共頁面,每個頁面都有一個portlet。從一個Portlet重定向到另一個Liferay 6.2
對於第一個portlet,點擊一個按鈕,我想打開另一個portlet。
是否有任何簡單的方法可以在liferay 6.2中執行此操作?
到目前爲止,我嘗試 - 目前從該組/遊戲/門戶頁面 - >
<script>
function manageGame() {
response.sendRedirect('group/games/manage');
}
</script>
<button onClick="manageGame()">Manage</button>
添加例如,如果你只是想重定向到其他頁面,然後在javascript函數寫'window.location.href =「/組/遊戲/門戶」' –
這可能幫助你http://stackoverflow.com/questions/21214967/how-to-navigate-from-portlet-to-portlet/21216973#21216973 – Gautam