alfresco

How do you override web.xml in an Alfresco Share amp?

非 Y 不嫁゛ 提交于 2019-12-24 00:59:09
问题 I want to remove some of the configuration from the Alfresco Share web.xml . That file lives at $TOMCAT_HOME/webapps/share/WEB-INF/web.xml so I added the customized file to $AMP_FOLDER/_share/config/META-INF/WEB-INF/web.xml . The WEB-INF folder lives at the same level as other customizations - compentents and css - which get mapped to the share.war correctly. The web.xml file appears to just get ignored though ( find $TOMCAT_HOME/webapps/share -name web.xml only finds the old version of the

Activiti workflow: setting value of an aspect from StartTask

Deadly 提交于 2019-12-23 16:45:55
问题 I need to set a value from a text field on my start form and then pull this information on several other tasks. To do this, I'm using an aspect and trying to send the data up to the execution variable, and then pull it down. The problem is that I cannot send the value from the start form to the execution variable. As it is now, Share will just say that the workflow cannot be started. I am using Alfresco 4.2.f Community edition. The start event is defined in the BPMN as follows: <startEvent id

How to get the name of a document in Alfresco with SQL?

╄→尐↘猪︶ㄣ 提交于 2019-12-23 05:27:47
问题 How to retrieve the name of a document from the Alfresco database (PostgreSQL)? I'm trying to get a list of documents created by a given user, e.g. admin, from a starting date, e.g. 2015-05-03: SELECT child.child_node_name, node.audit_created FROM alf_child_assoc child, alf_node node, alf_node_properties prop, alf_qname qname WHERE child.child_node_id = node.id AND node.id = prop.node_id AND prop.qname_id = qname.id AND qname.local_name = 'content' AND node.audit_creator = 'admin' AND node

Multilingual documents in Alfresco Share?

五迷三道 提交于 2019-12-23 04:22:06
问题 Alfresco has a MultilingualContentService but unfortunately it is not implemented in the Share UI. So, how to handle mutilingual content in Share? (for each document, several files in different languages) Is there some solution ready? If I have no choice but to develop, how would you do it? 回答1: Wrap it in an object that's accessible from your webscripts. Here's an example which already does it: package com.someco.web.jscript; import org.alfresco.repo.jscript.ScriptNode; import org.alfresco

Find all files in a site with Alfresco 4.1 webscripts

拟墨画扇 提交于 2019-12-23 03:15:11
问题 Alfresco Share doesn't keep track of content modified outside it's interface which makes the recently modified RSS/Dashlet useless. I'm working on creating an RSS that I can use within sites to pull a list of recently modified items. Right now I'm just working on getting the list of files and I'm stumbling a little bit as I'm not very familiar with Webscripts. I've got this piece of code that will retrieve the contents of a site then build an array of the files, the problem I'm running into

Find all files in a site with Alfresco 4.1 webscripts

[亡魂溺海] 提交于 2019-12-23 03:14:49
问题 Alfresco Share doesn't keep track of content modified outside it's interface which makes the recently modified RSS/Dashlet useless. I'm working on creating an RSS that I can use within sites to pull a list of recently modified items. Right now I'm just working on getting the list of files and I'm stumbling a little bit as I'm not very familiar with Webscripts. I've got this piece of code that will retrieve the contents of a site then build an array of the files, the problem I'm running into

How can I set a size limit for files uploaded in Alfresco 4.2.c?

大兔子大兔子 提交于 2019-12-22 18:30:32
问题 I think the title is pretty self-explanatory, now... I have been looking for a way of limiting the size of files uploaded in Alfresco 4.2.c through Share. I'm surprised there isn't any mechanism provided out-of-the-box, looks to me a pretty basic feature. After some investigation the only way I see to make it possible is by implementing custom policy or behavior, according to what's discussed here: http://forums.alfresco.com/forum/developer-discussions/web-content-services/limit-file-upload

Non-Authenticated FreeMarker page in alfresco share

梦想的初衷 提交于 2019-12-22 18:02:52
问题 i have create a new page in alfresco share but the page cannot be displayed without login! how can i make this page enabled without login. my file in "/alfresco/templates/blog/demo/custom-viewer.ftl". and this file contains "custom-viewer.ftl": <#include "include/alfresco-template.ftl" /> <@templateHeader> <@script type="text/javascript" src="${url.context}/res/modules/documentlibrary/doclib-actions.js" group="document-details"/> <@link rel="stylesheet" type="text/css" href="${url.context}

Non-Authenticated FreeMarker page in alfresco share

吃可爱长大的小学妹 提交于 2019-12-22 18:01:15
问题 i have create a new page in alfresco share but the page cannot be displayed without login! how can i make this page enabled without login. my file in "/alfresco/templates/blog/demo/custom-viewer.ftl". and this file contains "custom-viewer.ftl": <#include "include/alfresco-template.ftl" /> <@templateHeader> <@script type="text/javascript" src="${url.context}/res/modules/documentlibrary/doclib-actions.js" group="document-details"/> <@link rel="stylesheet" type="text/css" href="${url.context}

Alfresco Share client-side synchronous Form validation

被刻印的时光 ゝ 提交于 2019-12-22 14:57:50
问题 I have an Alfresco Share client-side Form in a registration scenario and I want to validate if the chosen username is taken. Can I add a Alfresco forms validator in a synchronous way? So far my form goes something like this: this.widgets.saveForm = new Alfresco.forms.Form(this.id + "-form"); this.widgets.saveForm.addValidation(Dom.get(this.id + "-username"), this.validateUsername, me, "blur", this.msg("validation-hint.username-taken")); But this.validateUsername needs to make an Alfresco.util