cancel
Showing results for 
Search instead for 
Did you mean: 

how to enable versioning for all the documents?

ramprakash2win
Champ in-the-making
Champ in-the-making
hi

i need to allow versioning for all the documents in one point of enabling for the documents which i had stored in alfresco.

please help me out in this.

thanks in advance..!
8 REPLIES 8

ramprakash2win
Champ in-the-making
Champ in-the-making
Hi

Finally i found the solution for versioning ..!

please keep this forum as an active forum..!

so that everyone can get some solutiongs

anyway thanks for atleast creating this portal..!

ddenev
Champ in-the-making
Champ in-the-making
Please post your solution for others to read. Thank you.

libman
Champ in-the-making
Champ in-the-making
In contentModel.xml add "Versionable" aspect to "cmSmiley Surprisedbject" can do it (not tested).

fbehfar
Champ on-the-rise
Champ on-the-rise

naconnell
Champ in-the-making
Champ in-the-making
Jeeze! Do things the hard way, why don't you? ;^)

In the space where you want versioning, select "More actions>Manage content rules".
Click "Create rule".
Select the things you want to apply the rule to (eg. mime type/word documents) [called a condition].
Select the action you want to apply: "Add an aspect", then select "Versionable" as the aspect.
Click the "Apply to subspaces" (if you want).
Hit the "Finish" button - bingo!

BTW: I shortened the dialog description in the above, the wizard bounces between screens quite a bit and you need to hit the "Next" button at appropriate times, but it's not too difficult to work out.

BTW2: You can add multiple mime types (for example) and multiple actions to a given rule.

Have fun kiddie-winks!

NAC

croc
Champ in-the-making
Champ in-the-making
Check the link below for another way of doing it:
http://wiki.alfresco.com/wiki/Versioning_Behaviour

If you you copy the following:
<mandatory-aspects>
    <aspect>cm:versionable</aspect>
</mandatory-aspects>
inside the cm:content, it should be fine, because any content you add, will have versionable aspect added to it.

Below if the code:

<type name="cm:content">
        <title>Content</title>
        <parent>cm:cmobject</parent>
        <properties>
           <property name="cm:content">
              <type>d:content</type>
              <mandatory>false</mandatory>
              <index enabled="true">
                 <atomic>true</atomic>
                 <stored>false</stored>
                 <tokenised>true</tokenised>
              </index>
           </property>
        </properties>
        <mandatory-aspects>
           <aspect>cm:versionable</aspect>
        </mandatory-aspects>
     </type>

Thnx,
Croc

croc
Champ in-the-making
Champ in-the-making
Sorry, forgot to mention the filename that you need to edit. it is contentModel.xml

glenski
Champ in-the-making
Champ in-the-making
And the location of that file on 3..3.g is installed location/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/model

Well at least I hope so because that one has in the same data init.

G