Foros de discusión

Create Render URL Freemarker Template

Beppo Ivel, modificado hace 9 años.

Create Render URL Freemarker Template

Regular Member Mensajes: 112 Fecha de incorporación: 9/04/14 Mensajes recientes
Hi.

This link mentioned how to build a Render-URL in your DDL template.

I tried to build the Render URL from dynamic_data_lists/record_action.jsp:

<portlet:renderurl var="editRecordURL" windowstate="<%= WindowState.MAXIMIZED.toString() %>">
			<portlet:param name="struts_action" value="/dynamic_data_lists/edit_record" />
			<portlet:param name="<%= Constants.CMD %>" value="<%= Constants.UPDATE %>" />
			<portlet:param name="redirect" value="<%= currentURL %>" />
			<portlet:param name="recordId" value="<%= String.valueOf(record.getRecordId()) %>" />
			<portlet:param name="formDDMTemplateId" value="<%= String.valueOf(formDDMTemplateId) %>" />
		</portlet:renderurl>


I have no idea how to get the ID (plid) to create the update URL:


&lt;#assign updateActionURL = portletURLFactory.create(request,"169_INSTANCE_X4hfOUKZyDvi",plid,"RENDER_PHASE")&gt;

At the end it should look like

http://localhost:8080/web/guest/welcome?p_p_id=169_INSTANCE_X4hfOUKZyDvi....
Beppo Ivel, modificado hace 9 años.

RE: Create Render URL Freemarker Template

Regular Member Mensajes: 112 Fecha de incorporación: 9/04/14 Mensajes recientes
I solved it I get the right plid via " themeDisplay.getPlid()"

&lt;#assign updateActionURL = portletURLFactory.create(request,"169_INSTANCE_X4hfOUKZyDvi", themeDisplay.getPlid() ,"RENDER_PHASE")&gt;


and I got this information from here. But now I see that "169_INSTANCE_X4hfOUKZyDvi" is not the right id. In the link above they suggest to use "themeDisplay.getPortletDisplay().getId()" but this returns "".
alex ehrenhöfer, modificado hace 8 años.

RE: Create Render URL Freemarker Template

New Member Mensajes: 7 Fecha de incorporación: 4/08/15 Mensajes recientes
Hej Beppo,

Do you have a solution for a "view" url too??

regards