cancel
Showing results for 
Search instead for 
Did you mean: 

custom properties not showing up in Share

lucille_arkenst
Champ in-the-making
Champ in-the-making
Hello,
I created a custom aspect ([Tomcat-home]/webapps/alfresco/WEB-INF/classes/alfresco/extension) and set it on a folder in Alfresco Explorer.  I want to be able to see those properties in Share as well.  I looked through some of the blogs and one of them said to put the customisations in [Tomcat-home]/shared/classes/alfresco/extension.  That didn't work.  Help!

Thanks!
21 REPLIES 21

invictus9
Champ in-the-making
Champ in-the-making
Custom property display in explorer requires that you create web-client-config-custom.xml and provide the properties and how they are displayed. I would image there is a similar process for Share.

lucille_arkenst
Champ in-the-making
Champ in-the-making
Thanks.  Right, I created my web-client-config-custom.xml… <config evaluator="aspect-name" …> <property-sheet>… The properties display correctly in Explorer.  Then I duplicated custom-model-context.xml, customModel.xml, and web-client-config-custom.xml to the "shared" extension subdirectory, but that didn't make it appear in Share.  Still trying to figure it out…

loftux
Star Contributor
Star Contributor
You need to create a form for custom metadata to display in Share. Have a look at
http://wiki.alfresco.com/wiki/Forms
And you can find some additional info in my blog-post
http://loftux.se/en/2010/02/11/alfresco-forms-for-share/

lucille_arkenst
Champ in-the-making
Champ in-the-making
Thank you, Loftux.  I like your blog!  The Forms wiki (and your blog) mention the <tomcat>/shared/classes/alfresco/web-extension folder.  The folder did not already exist; I had to create.  Is this correct?
I do not have a custom type, just a custom aspect.  If I write an aspect evaluator… what do I write for node-type evaluator?  Do I put the parent type as value for the condition?  Or are you supposed to "show" the custom aspect a different way?
Thanks again.

loftux
Star Contributor
Star Contributor
You are correct, you can just create the web-extension folder. However, if you grabbed an alfresco version that support share, that folder should be in your structure.
You can just grab a version alfresco-community-tomcat-3.3.[zip|tar.gz] from custom installs http://wiki.alfresco.com/wiki/Community_Edition_file_list_3.3, unzip it and it should be there. You will see some sample files there that will help you on the way

As for node-type evaluator, you add your property/properties defined in your aspect to the predefined cm:content form type. Just copy and paste into share-config-custom.xml

<!– cm:content type (existing nodes) –>
   <config evaluator="node-type" condition="cm:content">
      <forms>
         <!– Default form configuration for the cm:content type –>
         <form>
            <field-visibility>
               <show id="cm:name" />
               <show id="cm:title" force="true" />
               <show id="my:custompropertyfromaspect" />
               …

Note that you may have to add it in several places for 3.3, there are different configs depending on if you are creating or updating content. Se share-form-config.xml in tomcat/webapps/share/WEB-INF/classes/alfresco
Also, your aspect will not show in a create document dialog if it is not mandatory to that content type. But it will show once you have added the aspect.

lucille_arkenst
Champ in-the-making
Champ in-the-making
Thank you very much!  This helps.  I downloaded alfresco-community-tomcat-3.3 and I see share-form-config.xml.  This is good.  I have been doing my development work with alfresco-labs-tomcat-3c on localhost… do you think I need to redo the whole thing using alfresco-community-tomcat-3.3?   Smiley Surprisedops:

loftux
Star Contributor
Star Contributor
Cant really tell how much work it will be, since I have no idea how much customization you have done  Smiley Very Happy
But if you are aiming for Share, you will definitely be better off going through the effort to upgrade your code. And once you are done, there will be a 3.3G release in a couple of weeks!

lucille_arkenst
Champ in-the-making
Champ in-the-making
OK, I'll do it.  Thanks!  Smiley Very Happy

lucille_arkenst
Champ in-the-making
Champ in-the-making
Hello Loftux, if you are there…
I followed the instructions in "Installing and Configuring Alfresco Community Edition 3.3" and I started the server, but nothing happens when I go to http://localhost:8080/share or http://localhost:8080/alfresco.  The Firefox wheel icon keeps spinning and the page never loads.  Does this sound familiar?  Do you have any idea what I should do?