alfresco-share

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 Update File - ERROR POST

狂风中的少年 提交于 2019-12-20 05:24:12
问题 I'm trying to update a file in Alfresco... And I make this code: var csrf_header = Alfresco.util.CSRFPolicy.getHeader(); var csrf_token = Alfresco.util.CSRFPolicy.getToken(); function getResponse(pdfbase64) { var fd = new FormData(); if (Alfresco.util.CSRFPolicy && Alfresco.util.CSRFPolicy.isFilterEnabled()) { fd.append(csrf_header, csrf_token); } fd.append("username", "admin"); fd.append("updatenoderef", nodeRef); fd.append("filedata", pdfbase64); fd.append("majorversion", "true"); fd.append

Dynamic selectone in alfresco share

自古美人都是妖i 提交于 2019-12-20 01:09:30
问题 For a form in Alfresco share, I want a dropdown box that is filled with custom options depending on the value of a field earlier up in the form. My form would have at least two fields. The first one a textbox, where a unique code must be entered. When that is done, the second one, a select box, must load it's options using the entered code. The data backing this requirement is stored in a Data list. I have also made it available through a webscript (along the lines of /getOptions/{uniqueCode

How to apply the CSS class “hidden” to the field rows of the fields needed to be suppressed and set the value on the inputs to a default value

烂漫一生 提交于 2019-12-13 22:06:37
问题 I have to hide the fields password and verify password from UI screen and assign a default password xyz for the new users created. Please suggest how I can do that in the below snippet: <div class="field-row"> <span class="crud-label">${msg("bel.password")}: *</span> </div> <div class="field-row" type="hidden"> <input class="crud-input" id="${el}-create-password" type="password" maxlength="100" /> </div> <div class="field-row"> <span class="crud-label">${msg("label.rifypassword")}: *</span> <

I am using Alfresco 5.0.d Community Edition and mysql as database. I am creating user through Admin Tools -> Users -> Create User

谁说胖子不能爱 提交于 2019-12-13 12:32:46
问题 I am using Alfresco 5.0.d Community Edition and mysql as database. I am creating user through Admin Tools -> Users -> Create User. But when I am trying to invite these users, they are not searchable. They are also not searchable in People section but they are searchable in Admin Tools -> Users. No error is coming in server logs. I have even deleted previous indexing and created new indexing many times. Any help would be appreciated. Thanks 回答1: You can try by changing a property in alfresco

reading the value of a document property from within a behavior

守給你的承諾、 提交于 2019-12-13 05:16:32
问题 question description and code was updated Question 1: would be with what do I replace the dummy int attachmentid = 123; in the code below in order to read custom property sc:OpenERPattachmentID1 to get the id value stored in it? (Question 1 was Answered by alfrescian!) package com.openerp.behavior; import java.util.List; import java.net.*; import java.io.*; import org.alfresco.repo.node.NodeServicePolicies; import org.alfresco.repo.policy.Behaviour; import org.alfresco.repo.policy

How can I find alfresco empty foldres using Lucene Query

℡╲_俬逩灬. 提交于 2019-12-13 03:49:34
问题 I want to retrieve the list of folders in a specific node whose list of childrens is empty using Lucene query . I create this query: +PATH:"/app:company_home/cm:contexts/cm:ctx_exploitation/cm:runs/cm:Run_322645//."+Children is empty. but it does not give good results. What is the right Lucene syntax to do this 回答1: There is no way to find empty folders using a Lucene query. However, there are some java services and javascript APIs in alfresco like 'FileFolderService' in Java and

Custom form new user error in Alfresco

梦想的初衷 提交于 2019-12-13 02:21:50
问题 How can I make a custom user profile ? I want to add a new field to the users in Alfresco... I try to use this : http://ecmarchitect.com/archives/2012/02/27/1555, the code : http://ecmarchitect.com/images/articles/alfresco-people/someco-people.zip... Important code: SignUserFactory.java package com.someco.share; import java.io.ByteArrayInputStream; import java.io.IOException; import java.util.Map; import org.alfresco.web.site.SlingshotUserFactory; import org.json.JSONException; import org

Alfresco - Get username in workflow

∥☆過路亽.° 提交于 2019-12-12 18:52:27
问题 I'm searching for the username of assignees when I create on a workflow... I use this: public void notify(DelegateExecution execution) { // get value of property mymodel:myproperty Object assignees = execution.getVariable("bpm_assignees"); } When I get bpm_assignees I get this: bpm_assignees map value: [Node Type: {alfresco.org/model/content/…}person, Node Aspects: [{alfresco.org/model/content/…}ownable, {alfresco.org/model/system/1.0}referenceable, {alfresco.org/model/system/1.0}localized],