cancel
Showing results for 
Search instead for 
Did you mean: 

Modify custom document properties in alfresco share

anovotny
Champ in-the-making
Champ in-the-making
Hello,
Is it possible to modify custom document properties in alfresco share environment (Document Library)?

I am able to assign custom model to the document, what means add my own custom properties.
I am able to allow the user to change this properties in „standard“ alfresco web client.
But I want some users to access only the share environment and allow them to change the properties there.

Is there a way how to do it?
Thank you.
Ales
5 REPLIES 5

steffen
Champ in-the-making
Champ in-the-making
hi,

for alfresco 3.2 onwards that's possible by using the forms service: http://wiki.alfresco.com/wiki/Forms

HTH

steffen

anovotny
Champ in-the-making
Champ in-the-making
Hi,
thanks for the link. I tried to follow the wiki page http://wiki.alfresco.com/wiki/Forms_Examples, but still nothing happens.
I have extended the content model:



<types>
      <!– Enterprise-wide generic document type –>
      <type name="rz:razitko">
         <title>Razitko AutoCAD</title>
         <parent>cm:content</parent>
         <mandatory-aspects>
           <aspect>cm:generalclassifiable</aspect>
         </mandatory-aspects>
      </type>
  </types>

   <aspects>
      <aspect name="rz:razitkoa">
         <title>Razitko</title>
         <properties>
            <property name="rz:nazevzakazkya">
               <type>d:text</type>
               <mandatory>false</mandatory>
            </property>            
         </properties>
      </aspect>   
   </aspects>

Created the rule which applies this type to all documents inserted. I can see and edit this properties in "standard" alfresco environment.
As I want to see/edit it in alfresco share, I created the C:\Alfresco\tomcat\shared\classes\alfresco\web-extension\share-config-custom.xml file:


<?xml version="1.0" encoding="UTF-8"?>
<alfresco-config>
   <config evaluator="node-type" condition="rz:razitko">
      <forms>
         <form>
            <field-visibility>
               <show id="rz:nazevzakazkya"/>
            </field-visibility>
            <appearance>
             <field id="rz:nazevzakazkya">
               <control template="textfield.ftl" />
             </field>
          </appearance>

         </form>
      </forms>
   </config>
</alfresco-config>

Restarted the tomcat, but if I choose „Edit metadata“ in alfresco share, I can see only the standard page.
Where is the mistake?
Thank you.
Ales

sselvan
Champ in-the-making
Champ in-the-making
Hi Alex,

Do you have any updates?

thank you

anovotny
Champ in-the-making
Champ in-the-making
Hello,
unfortunately not - as I had other priorities, I postponed this issue.
Nevertheless I don't have an idea where to search the mistake…
Ales

sselvan
Champ in-the-making
Champ in-the-making
Well, @Ales

I was able to solve this issue in my setup following this forum link http://forums.alfresco.com/en/viewtopic.php?f=47&t=16024.
I advice you to read through all the responses in this thread till end.

In fact, one of the last responses in this thread saved me, since that is not completely documented in http://wiki.alfresco.com/wiki/Forms!

These two are very helpful -
http://edlovesjava.blogspot.com/2009/07/alfresco-forms-engine-customization.html
http://loftux.se/en/2010/02/11/alfresco-forms-for-share/

Hope this is helpful!

Thank you