As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<?xml version="1.0" encoding="UTF-8"?> <!– Custom Model –> <!– Note: This model is pre-configured to load at startup of the Repository. So, all custom –> <!– types and aspects added here will automatically be registered –> <model name="custom:customModel" xmlns="http://www.alfresco.org/model/dictionary/1.0"> <!– Optional meta-data about the model –> <description>Custom Model</description> <author></author> <version>1.0</version> <imports> <!– Import Alfresco Dictionary Definitions –> <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/> <!– Import Alfresco Content Domain Model Definitions –> <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/> </imports> <!– Introduction of new namespaces defined by this model –> <!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –> <namespaces> <namespace uri="http://www.yourCompany.com/customer/project/1.0" prefix="custom"/> </namespaces> <types> <type name="custom:documentoConAssociati"> <title>Documento con associati</title> <parent>cm:content</parent> <associations> <child-association name="custom:documentiAssociati"> <source> <mandatory>false</mandatory> <many>true</many> </source> <target> <class>cm:content</class> <mandatory>false</mandatory> <many>true</many> </target> </child-association> </associations> </type> </types> </model>
ok piergiorgio, ho seguito le tue indicazioni e apportando le modifiche opportune al web-client-config-custom.xml ora ho il nuovo content type "Documento con associati". grazie.
In realtà, la mia necessità era leggermente diversa (forse sono stato poco chiaro e mi scuso…) ovvero poter definire un nuovo custom aspect di tipo "attachable" (come una delle action già presenti taggable, versionable, ecc), da poter associare ad una business rule in modo tale che l'utente, aggiungendo contenuti di qualsiasi tipo allo spazio su cui la business rule è definita, possa avere la possibilità di allegare documenti.E' fattibile?
<types> …. </types> <aspects> <aspect name="custom:attachable"> <title>Auditable</title> <associations> <child-association name="custom:attachedDocuments"> <source> <mandatory>false</mandatory> <many>true</many> </source> <target> <class>cm:content</class> <mandatory>false</mandatory> <many>true</many> </target> </child-association> </associations> </aspect> </aspects>