No Custom Constraints for Associations in Alfresco

Unfortunately I was wrong when I stated that the restriction for an association to a specific subfolder “can be cross checked server-side and configured directly within the content model using a custom constraint.” (compare my blog entry on custom categories)

Why? Cause custom constraints are only possible for properties – not for associations. Too bad as I had the constraint nearly implemented. *sigh* I would really appreciate it if Alfresco could implement this functionality also for associations. And by the way – could also a built-in constraint for subfolder-selections be integrated? This would make my work-around unnecessary.

However, while the custom constraint thing didn’t work, I managed to implement a comparable functionality to the built-in category browsing for my custom categories: I implemented a Behavior that creates respectively removes links in the linked to custom category folder. This allows to browse for documents by browsing the custom-category folders. And this is easily possible from within share through the new Repository Link. :) Stay tuned – a tutorial will soon be published on this blog.

PS: Is there someone else having a similar use-case than I have? How do or would you solve it?

Custom Categories – A Custom Control Template for Hierarchical Properties

This tutorial describes how to integrate a custom control template (custom UI element for share) for displaying and selecting from a hierarchical structure in Alfresco 3.3. Such an element can be used to assign category-like values to a property. Opposed to the built-in category-function of Alfresco these custom categories can be assigned to specific properties and are safe in regard to which categories are displayed respectively selectable.

Continue reading →

A new blog is born

I’m happy to welcome you to my new blog. While currently there is just this welcome message, this will hopefully change soon. I plan to post articles on interesting IT topics – especially on the document management system Alfresco and the new star in the programming language sky: Scala. So far I recommend to read the about page to get a short overview of what this blog is about and who I am.

Hope you will return soon!

Cheers
Chris

PS: How do you like the logo and the design in general?