Skip to content

Instantly share code, notes, and snippets.

@topolik
Created May 25, 2012 15:31
Show Gist options
  • Save topolik/2788800 to your computer and use it in GitHub Desktop.
Save topolik/2788800 to your computer and use it in GitHub Desktop.
<aui:script use="liferay-portlet-url">
var portletURL = Liferay.PortletURL.createRenderURL();
portletURL.setPortletId('<%= portletId %>');
var urlToUse=portletURL.toString();
</aui:script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment