mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
NodeInfoBean update - optional template parameter on sendNodeInfo()
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5582 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -74,11 +74,17 @@ public class NodeInfoBean
|
||||
throw new IllegalArgumentException("'noderef' parameter is missing");
|
||||
}
|
||||
|
||||
String strTemplate = (String)context.getExternalContext().getRequestParameterMap().get("template");
|
||||
if (strTemplate == null || strTemplate.length() == 0)
|
||||
{
|
||||
strTemplate = "node_summary_panel.ftl";
|
||||
}
|
||||
|
||||
NodeRef nodeRef = new NodeRef(strNodeRef);
|
||||
if (this.nodeService.exists(nodeRef))
|
||||
{
|
||||
Repository.getServiceRegistry(context).getTemplateService().processTemplate(
|
||||
"/alfresco/templates/client/node_summary_panel.ftl", getModel(nodeRef), out);
|
||||
"/alfresco/templates/client/" + strTemplate, getModel(nodeRef), out);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user