alfresco

How to Pass Workflow Propert in Control-Parm to FTL File in Alfresco?

不打扰是莪最后的温柔 提交于 2019-12-11 10:46:06
问题 So for my project, we have some javascript code running as a rule within the Alfresco repository. So whenever a new document comes into a certain space, a new folder is dynamically created and that document is moved into that newly created space. Additionally, whenever a new folder is created, a property is updated like so for the document (expect caseID is actually a dynamically generated value based on a sequence in our database): //Add caseID as a property of the folder var props = new

Alfresco - HTTP Sessions

ぃ、小莉子 提交于 2019-12-11 09:57:27
问题 Trying to access the HTTP session through Javascript Webscripts on QuickStart. I am unable to find any help in saving elements to some private object for each http session. Does anyone know of any solutions? 回答1: Create a custom JavaScript root object - it is a Java class which implements org.springframework.extensions.webscripts.processor.BaseProcessorExtension class, for example: package pl.test; import javax.servlet.http.HttpSession; import org.springframework.extensions.surf.ServletUtil;

Send public link by email

淺唱寂寞╮ 提交于 2019-12-11 09:46:04
问题 i am facing a little problem with email template in Alfresco Share. I want to send document's public link to users when somthing is uploaded. The question is: how to include public link of a shared document in email template? what freemarker data tag references the public link? 回答1: In Share 4.2f under path share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\head\ resources.get.html.ftl you have constant Alfresco.constants.QUICKSHARE_URL built like Alfresco.constants

Auto-Incrementing (Unique) ID in Alfresco

余生颓废 提交于 2019-12-11 08:03:30
问题 i am trying to extend alfresco's document management by running a script. So far, i have managed to create a Custom Model with a Custom Type and Property as seen below: the said Custom Type is under this Custom Model (never mind the Custom Aspect for now) the custom type is working so far, i managed to apply it to a certain document as you can see below (Notice the Control Code Field) now what i want to do is to add an auto incrementing function that will be set as the value of the Control

Editing Alfresco Default User and Site Dashboard Layout / Dashlets

风格不统一 提交于 2019-12-11 07:27:43
问题 For my specific implementation, it makes sense to only use the 2 column layout on both the site and user dashboards. I want to make this the default layout and pick which dashlets I'm going to use, as I'm going to create a large number of sites and users and don't want to manually go through and edit the layout for each one. I've successfully commented-out sections of the presets.xml located in /tomcat/webapps/share/WEB-INF/classes/alfresco/site-data/presets such that when I create a new user

Is it possible to make document picker default to document library in alfresco share?

末鹿安然 提交于 2019-12-11 07:24:39
问题 I have a copy of association.ftl which I use for a control added to the advanced search form in share. Unfortunately when opened the default display is companyhome where as I'd rather have it default to the related site's document library. I read this wiki and also tried the changing the parentNodeRef value in the javascript to at least add sites to the path to no success. The share form config control: <config evaluator="model-type" condition="cm:content"> <forms> <!-- Search form --> <form

ExceptionActiviti: unknown property used in expression

和自甴很熟 提交于 2019-12-11 05:07:27
问题 sI use activiti for my workflow on alfresco 4.2.c. I want to assign to a group from my form selection. But when I press submit task it throws an exception: org.activiti.engine.ActivitiException: Unknown property used in expression My activiti is: <userTask id="kiemtranoidungthethuc" name="Kiểm tra nội dung, thể thức VB- Chuyển cho phòng TCHC" activiti:assignee="${bpm_assignee.properties.userName}" activiti:formKey="wfdi:kiemtranoidungthethucTask_tc"> <extensionElements> <activiti:taskListener

Error while trying to log into Alfresco Community Edition

て烟熏妆下的殇ゞ 提交于 2019-12-11 04:52:35
问题 After installing Alfresco Community Edition (4.2.c) in my office machine, I get "The remote server may be unavailable or your authentication details have not been recognized." But it installed properly and can log into in my personal laptop. I want to know why I am getting this error. 回答1: You should first check if the repository part is up and running by logging to http://localhost:8082/alfresco If this doesn't work (as you said? What happens?) you should check alfresco.log and maybe

How to retrieve the hostname from an Alfresco Share webscript

若如初见. 提交于 2019-12-11 04:03:14
问题 I'd like to know how you can know the current hostname from a Root Object in Surf. I'm writting a webscript which serve a JNLP, so I have no page context, and ${url.context} only returns /share . I'm looking how I can have the hostname http://foobar.com or if this is possible at all from server side. I've been through: http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API# without success 回答1: On the repository side, the URLs for Alfresco and Share are known.

Integrating Alfresco and Liferay to show only one folder

时光总嘲笑我的痴心妄想 提交于 2019-12-11 02:59:15
问题 I'm trying to integrate Alfresco and Liferay. I have configured CMIS integration following this guide. It works without problem. But now, I want to configure that repository to show only one folder. I can set a start folder on "Document and Media Portlet", but if I try to add a folder of the Alfresco repository, it says that there are not folders. Here is a screenshot of "Document and Media portlet" integrated with an Alfresco repository And this is when I try to select one folder of the