Search code examples
javascriptliferay-6alloy-ui

Refresh asset publisher portlet liferay6.2


I need to refresh asset publisher portlet every 5 minutes..

Liferay 6.2 ce ga2

thank you


Solution

  • This is the solution I followed :

    • Step 1 : Go to "Admin" > "site administration" > "Private pages"
    • Step 2 : Insert the following script in Javascript" in the right side:

      function refreshPortlet(){
            Liferay.Portlet.refresh('.portlet-asset-publisher');
            setInterval(refreshPortlet, 300000); 
      }
      refreshPortlet();
      

    I hope this helps