alfresco-share

Could anyone provide aikau form example with data loading?

戏子无情 提交于 2019-12-25 09:25:59
问题 Aikau example contains a var button which configured to show popup with form control. As I know every aikau form has a value, which can be used to prepopulate controls, but how to load value from URL? E.g. someone push on the button, it load "somehow" data from URL, stores them into Form value and then populate one field on the form. The key problem is what parameters to use as URL (is it publishPayload.url ?) and what and where a topic should be set for this? I have tried already example

Not able to select a tag in Alfresco Community 5.0.d

六眼飞鱼酱① 提交于 2019-12-25 08:59:28
问题 I am using Alfresco Community 5.0.d and when I go to edit properties then click on select tag, I get below error in view. org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 00170047 Below is error in console. "status": { "code": 500, "name": "Internal Error", "description": "An error inside the HTTP server which prevented it from fulfilling the request." }, "message": "org.alfresco.repo.search.impl.lucene.LuceneQueryParserException: 00170049 ", "exception": "", "callstack": [],

How to display all the properties of the selected reviewers?

僤鯓⒐⒋嵵緔 提交于 2019-12-25 08:21:31
问题 Consider the business process "Review and Approve (one or more reviewers) - Assign a review task to multiple reviewers" . When I choose reviewers I see only their properties cm:userName . How to display all the properties of the type cm:person? For example: cm:userName cm:firstName cm:middleName cm:email cm:organizationId cm:jobtitle cm:googleusername And so on... Instead of this container (part of the association.ftl): ... <div id="${controlId}-currentValueDisplay" class="current-values"><

How to start an FTR Replication Job from Alfresco Script

纵饮孤独 提交于 2019-12-25 08:20:35
问题 As in the subject, I have an already configured File Transfer Replication Job, which I am able to run manually. Now, I would like to start it at the end of a Script (not a Web Script or Java). However I cannot find documentation or example on how to achieve this. I have spot a Transfer object in the official documentation, but I have not been able to found any more API details. My Alfresco version is 4.2. 回答1: It took me a while to figure it out, but eventually I found two solutions. First

Get quickshare url with javascript

跟風遠走 提交于 2019-12-25 07:30:31
问题 I want to share a document with JavaScript and get its share_id programatically. There is a REST API that can do that but I didn't know how to call it from script. Any clues? 回答1: The following hack will do the trick. (edit: Must be executed from the classpath in the repository) var ctx = Packages.org.springframework.web.context.ContextLoader.getCurrentWebApplicationContext(); var qsService = ctx.getBean("QuickShareService"); var sId = document.properties['qshare:sharedId']; if (!sId) { sId =

How to extend toolbar.get.config.xml in Alfresco Share

江枫思渺然 提交于 2019-12-25 05:22:37
问题 I'm trying to extend toolbar.get.config.xml in (share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\data-lists). For some reasons these is still done in pre v4.0 stile. https://issues.alfresco.com/jira/browse/ALF-13592 Would be ideal to extend it via share-config-custom like other DocumentLibrary actions Many thanks, Rocco 回答1: take a look at this french blog (use google translater if needed) and a lot will be clear. 来源: https://stackoverflow.com/questions/13156806/how-to

How add list headers to AlfDocumentListView in aikau?

耗尽温柔 提交于 2019-12-25 04:26:07
问题 Consider this example. It has the following lines: var views = [ { name: "alfresco/documentlibrary/views/AlfDocumentListView", config: { widgets: [ { id: "VIEW_ROW", name: "alfresco/documentlibrary/views/layouts/Row", config: { widgets: [ { name: "alfresco/documentlibrary/views/layouts/Cell", config: { widgets: [ { id: "DATA_LIST_TITLE", name: "alfresco/renderers/Property", config: { propertyToRender: "title" } } ] } } ] } } ] } } ]; This show just list of data, but without any headers. What

How to add custom action on workflow form in alfresco to rename document name

我只是一个虾纸丫 提交于 2019-12-24 03:17:32
问题 I want to add document name rename action on workflow form in alfresco share. Is there any way to do this. Please provide the required steps and sample code snipet if possible. Please reply is somebady did this before. Thanks in advance. 回答1: The first thing which you need to do is to define the form configuration for the workflow task form for which you have taken the screenshot.You can define it inside the share-config-custom.xml. Form configuration should be something like below. <config

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

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