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.
<!– Sites Namespace –> <namespaces> <namespace uri="http://www.alfresco.org/model/site/1.0" prefix="st"/> <!– if you want to extend the properties of a site then use this namespace to mark the custom properties –> <namespace uri="http://www.alfresco.org/model/sitecustomproperty/1.0" prefix="stcp"/> </namespaces> <aspects> <!– Example Custom Site Properties Aspect –> <aspect name="st:extraSiteProperties"> <title>Custom Site Properties</title> <properties> <property name="stcp:extraInformation"> <title>Extra Site Information</title> <type>d:text</type> </property> </properties> </aspect> </aspects>
<bean id="onCreateRatingNode" class="org.alfresco.repo.policy.registration.ClassPolicyRegistration" parent="policyRegistration"> <property name="policyName"> <value>{http://www.alfresco.org}onCreateNode</value> </property> <property name="className"> <!– <value>{http://www.someco.com/model/ratings/1.0}rating</value> –> <value>{http://www.alfresco.org/model/site/1.0}site</value> </property> <property name="behaviour"> <bean class="org.alfresco.repo.jscript.ScriptBehaviour" parent="scriptBehaviour"> <property name="location"> <bean class="org.alfresco.repo.jscript.ClasspathScriptLocation"> <constructor-arg> <!– <value>alfresco/module/behavior-tutorial-repo/scripts/onCreateRating.js</value> –> <value>alfresco/module/behavior-tutorial-repo/scripts/onCreateSite.js</value> </constructor-arg> </bean> </property> </bean> </property> </bean>