How to add custom aspect to folder in Alfresco 4.2? -


I have kept the information required for a custom aspects ... but I do not understand how to do it Add a folder so that when a user uploads a document, then the meta-data of that document is required to be entered.

My custom aspect is not visible in the customized dialogue managed by the repository or the rule for a rule is making new.

When creating rules I select the 'Set property' option, but then I can only set one asset at a time and only with the data defined in the rule.

I've added my aspect as 'web-client-config-custom.xml':

  & lt; Config evaluator = "string-compare" status = "action wizards" & gt; & Lt; Aspects & gt; & Lt; Aspect names = "custom: myspace" /> & Lt; / Facets & gt; & Lt; / Config & gt; & Lt ;! - Displays properties in the description details page - & gt; & Lt; config evaluator = "aspect-name" condition = "custom: myspect" & gt; & Lt; Property Letter & gt; & Lt; Separator name = "sepMyAspect1" display-label = "MyAspect" component-generator = "header separator generator" /> & Lt; Show-property name = "p1" /> & Lt; Show-property name = "p2" /> & Lt; Show-property name = "p3" /> & Lt; Show-property name = "p4" /> & Lt; Show-property name = "p5" /> & Lt; Show-property name = "p6" /> & Lt; / Property letter & gt; & Lt; / Config & gt; & Lt; / Alfresco-config & gt;   

I can not help but I think something missed in this XML file. But I do not have enough experience with Alfreso to determine how it is.

EDIT:

I have tried to modify the content-model. Properties. The XM file, and to show at least some of the management of the material aspects found For ... but it looks weird and if I add it to the folder then the operation fails.

  custom_customModel.description = User defined content model custom_customModel .aspect.custom_MyAspect.title = MyAspect custom_customModel.aspect.custom_MyAspect.description = MyApectpect Description custom_customModel.property.custom_p1.title = p1 custom_customModel.property Custom_p1.description = p1 disks custom_customModel.property.custom_p2.title = p2 custom_customModel.property. Custom_p2.description = p2 desc custom_customModel.property.custom_p3.title = p3 custom_customModel.property.custom_p3.description = p3 Disabled custom_customModel.property.custom_p4.title = p4 custom_customModel.property.custom_p4.description = p4 div custom_customModel.property.custom_p5. Title = p5 custom_customModel.pr operty.custom_p5.description = p5 desc custom_customModel.property.custom_p6.title = p6 custom_customModel.property.custom_p6.description = p6 desc   

when I open that dialog I get what I get:

aspect.custom = MyAspect

where the title should be ... like it is being cut as soon as possible.

Edit 2:

OK, I managed to get a little more progress, now it looks like this:

aspect.custom_MyAspect

In addition to this, I can choose it when creating rules for a folder that exits I used '=' instead of ':' in the share- config-custom.xml file.

However, I can not see the properties with my custom aspect. It seems that has been added but then I can not see when I got a property form ... neither using a dialog or a rule By creating which adds aspect to each new item ...

Not sure if you want to , But you have both user interfaces, old explorer (web-client-config-custom.xml) and shared Switch to (stock-config-Kstm.aksmel)

That is a monitor said.

Let's say that you want to show your properties on every form (in the share), where node has your aspect, configuration (shared -config-custom.exml)

  & lt; Config evaluator = "aspect" condition = "fdk: exif" & gt; & Lt; Forms & gt; & Lt; Form & gt; & Lt; Field visibility & gt; & Lt; Show id = "fdk: creator" /> & Lt; Show id = "fdk: originalDateTime" /> & Lt; Show id = "fdk: compression" /> & Lt; Show id = "fdk: xResolution" /> & Lt; Show id = "fdk: yResolution" /> & Lt; Show id = "fdk: flash" /> & Lt; / Field visibility & gt; & Lt; / Form & gt; & Lt; / Forms & gt; & Lt; / Config & gt;    

Comments

Popular posts from this blog

jasper reports - How to center align barcode using jasperreports and barcode4j -

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -