mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- Fixes to web client so PHP templates can rendered as custom views.
- Expended PHP JAva API to provide basic read-only implementations. This allows naviagtion of a node structure, retrieval of properties and content details. - Added relevant unit tests - Implemented and tested doc_info.php example template git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5599 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -270,7 +270,7 @@ public abstract class BaseTemplateContentServlet extends BaseServlet
|
||||
* The model includes the usual template root objects such as 'companyhome', 'userhome',
|
||||
* 'person' and also includes the node specified on the servlet URL as 'space' and 'document'
|
||||
*
|
||||
* @param services ServiceRegistry required for TemplateNode construction
|
||||
* @param services ServiceRegistry
|
||||
* @param req Http request - for accessing Session and url args
|
||||
* @param templateRef NodeRef of the template itself
|
||||
* @param nodeRef NodeRef of the space/document to process template against
|
||||
@@ -295,7 +295,10 @@ public abstract class BaseTemplateContentServlet extends BaseServlet
|
||||
String name = (String)names.nextElement();
|
||||
args.put(name, req.getParameter(name));
|
||||
}
|
||||
root.put("args", args);
|
||||
root.put("args", args);
|
||||
|
||||
// Add the image resolver
|
||||
root.put(TemplateService.KEY_IMAGE_RESOLVER, imageResolver);
|
||||
|
||||
// method to allow client urls to be generated
|
||||
root.put("url", new URLHelper(req.getContextPath()));
|
||||
|
Reference in New Issue
Block a user