News & Announcements
What's New
Hyland Announcements
Community News
Blogs & Forums
Content Innovation Cloud
OnBase
Alfresco
Nuxeo
Perceptive Content
Hyland Cloud
Additional Products
Industry Solutions
Resources
Welcome to Hyland Community
Product Resources
Support Resources
Services Resources
Hyland Cloud
All Hyland Resources
Groups
Partners
Help
Home
Alfresco
Alfresco Archive
Custom behavior when a node change type
drocco88
Hi there,
I'm in a need to check the new type of a content when it is changed (throw the "Change Type" action in the details view) and use that value to do something else.
Can you please point me to the right direction?
Many thanks,
Rocco
Find more posts tagged with
Accepted answers
afaust
Hello,
the OnSetNodeTypePolicy is your best bet here. Only in such a policy do you have access to the before and after type QName.
Regards
Axel
All comments
afaust
Hello,
the OnSetNodeTypePolicy is your best bet here. Only in such a policy do you have access to the before and after type QName.
Regards
Axel
drocco88
Thanks Axel
drocco88
One more question:
What about showing the type in the detailed view? I was having a look at cm:type but is not the actual node type (is for the Dublin Core aspect).
Cheers
afaust
Hello,
as a type is not a property / association in itself, it can not be displayed directly using field declaration in Share forms. We previously added a form filter on the Alfresco repository tier to add a pseudo-field "type" that can be used in detail view forms (similiar to the pseudo fields "transitions", "packageItems" etc.). Such a modification requires a bit of Java programming.
Regards
Axel
drocco88
Thanks. I was also thinking of doing it throw a behavior that changes a custom "type" property.