Skip to content

Instantly share code, notes, and snippets.

@farmerbradllc
Created September 18, 2015 13:10
Show Gist options
  • Save farmerbradllc/3f7d4aaab4ea0ea28919 to your computer and use it in GitHub Desktop.
Save farmerbradllc/3f7d4aaab4ea0ea28919 to your computer and use it in GitHub Desktop.
Add Web Content Liferay Link
$request
$themeDisplay.getPathMain()
action='<%= themeDisplay.getPathMain() + "/portal/update_layout?p_auth=" + AuthTokenUtil.getToken(request) + "&p_l_id=" + plid + "&p_v_l_s_g_id=" + themeDisplay.getSiteGroupId() %>' method="post" name="addApplicationForm">
<aui:input name="doAsUserId" type="hidden" value="<%= themeDisplay.getDoAsUserId() %>" />
<aui:input name="<%= Constants.CMD %>" type="hidden" value="template" />
<aui:input name="<%= WebKeys.REFERER %>" type="hidden" value="<%= refererURL.toString() %>" />
<aui:input name="refresh" type="hidden" value="<%= true %>" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment