Sample Types and Aspect - Config Files

Showing results for 
Search instead for 
Did you mean: 

Sample Types and Aspect - Config Files

Member II
0 3 2,444
Back in January I posted a blog about how powerful the Aspect feature was in Alfresco. It included two videos – one showing how to apply an aspect and one showing how to search on an aspect. A number of people have asked about getting access to my configuration files so they could try it out themselves. So here are the instructions and sample files.


These customisations will add a number of new types and one new aspect:

ContractContract IDCustomer InfoCustomer Name
Standard Operating ProcedureSOP IDCustomer ID
ReportReport IDCustomer Contact
Case FileCase ID
Issue LogIssue ID
ProposalProposal ID
Meeting NotesMeeting ID


The demo configurations consist of 5 files. Copy these to the relevant location within the Alfresco install (note: if you already have some of these files, with local configurations, you will need to merge the changes).

Copy to


(note: you will need to create the messages folder)

Copy custom-slingshot-application-context.xml and share-config-custom.xml to


(note: you will most probably already have a share-config-custom.xml file. This one can replace the default one if you have not modified it)

Copy demo-context.xml and demoModel.xml to


Now restart the server. If everything goes right you should now be able to...

  1. Change the type

  2. Add an aspect

  3. Set the meta data

  4. Use the advanced search feature.