cancel
Showing results for 
Search instead for 
Did you mean: 

Managing aspects in Share

kbonnet
Champ in-the-making
Champ in-the-making
Does anyone know how to add custom aspects to the aspect list in the "Manage aspects" form in share?

Hope to hear.

Kind regards,

Koen Bonnet
10 REPLIES 10

mikeh
Star Contributor
Star Contributor
Edit/override aspects.get.config.xml in the slingshot / documentlibrary area of the repository webscripts.

Thanks,
Mike

tonyc
Champ in-the-making
Champ in-the-making
I have added a custom aspect to aspects.get.config.xml and I can apply them okay.  My problem is that when I go to edit the metadata after a custom aspect has been applied to content the "Save" button is ghosted so I cannot make any changes to metadata through share?  Anyone experience anything like this?

systec
Champ in-the-making
Champ in-the-making
I have found that while adding a custom aspect to the config file allows you to apply it to a document in Share, the correct metadata fields are not shown if the aspect is part of a custom content model. I believe the reason behind this is the file's document type.

I haven't seen a way in Share to specify a document type when uploading a file. Hence the default Alfresco cm:content is applied. You can upload the file via Alfresco Explorer, set the custom document type and then, through Share, apply the aspect and the metadata fields become visible. The only way around this at the moment i think, is to create a rule in Explorer at the space or folder level that sets the document type. The ugly part of this solution is that your folder taxonomy in Share may be dictated by your content model in the repository. Even worse is that while an aspect can cross cut your content model, exposing it to Share using the web-framework-config-custom.xml file, you need to explicitly declare the aspect against every documcent type to make the metadata available on the form. Can someone please correct me if i'm wrong on this?

I imagine it's only a matter of time before Share allows one to set the document type, either at contribution time or by exposing actions to the client; hopefully both!

systec
Champ in-the-making
Champ in-the-making
As a correction to my previous posting please note that the functionality to specialise a type is available in Alfresco 3.2 CE.

Please also refer to this topic http://forums.alfresco.com/en/viewtopic.php?f=5&t=12780 which discusses a similar subject.

chandu7ee
Champ in-the-making
Champ in-the-making
Edit/override aspects.get.config.xml in the slingshot / documentlibrary area of the repository webscripts.

Thanks,
Mike


thanks MikeH,

but  here my requirement is to add aspect directly to the every document while uploading to share document library. for exp  i just want to add cm:classifiable aspect to every document in share.

thanks
Chandu

mikeh
Star Contributor
Star Contributor
Use the EXplorer client to create a rule that applies to subfolders.

Rules is coming to the Share UI in v3.3, but for now you'll need to use the Explorer client.

Thanks,
Mike

rbkprod
Champ in-the-making
Champ in-the-making
Hi.

I have a custom aspect that adds a few custom properties to all files uploaded. I added my custom aspect to the 'share-config-custom.xml' file, and even though I can use the aspect with a rule in share (Alfresco 3.3), it doesn't show the custom properties of the aspect anywhere, nor give a chance to enter these properties. I'm guessing the aspect and properties should be called somewhere, equivalent to the 'web-client-config-custom.xml' file e.g;

    <config evaluator="aspect-name" condition="custom:CustomAspectHere">
      <property-sheet>
       <show-property name="custom:Property1"/>

…..

Although I have no idea where the share equivalent of that is suppose to be, or even look like. (never really used share, but it looks like it might be a very good option for what we are trying to do). Any help is appreciated.

EDIT: Seems I got it working, edit the 'share-form-config.xml' file and add your custom properties under
<field-visibility>
  accordingly. I did this (for my code example above) :


            <!–custom:CustomAspectHere –>
            <show id="custom:Property1" />

It then shows @ the Edit meta data in Share, just like it would In Explorer. Hope its helpful to someone.

TAKE NOTE: These fields are only visible in the "Full metadata edit page" NOT in the popup, I'll try to get it showing in the popup as well and post results.

mikeh
Star Contributor
Star Contributor
Take a look at the Forms config sections on the wiki - or, more directly - in share-form-config.xml.

Thanks,
Mike

rbkprod
Champ in-the-making
Champ in-the-making
I was wondering, is there a way to call the metadata popup for a file/each file directly after it has been uploaded, kind off forcing the user to enter the metadata?