<model name="mio:mynewmodel" xmlns="http://www.alfresco.org/model/dictionary/1.0">
<description>Example 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>
<namespaces>
<!– Define a Namespace for my new definitions –>
<namespace uri="my.new.model" prefix="mio"/>
</namespaces>
<aspects>
<aspect name="mio:doc">
<title>Mio Documento</title>
<properties>
<property name="mio:matricola">
<type>d:text</type>
</property>
<property name="mio:tipodoc">
<type>d:text</type>
</property>
<property name="mio:data">
<type>d:date</type>
</property>
</properties>
</aspect>
</aspects>
<!– Type and Aspect definitions go here –>
</model>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>
<beans>
<!– Registration of new models –>
<bean id="extension.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
<property name="models">
<list>
<value>alfresco/extension/myModel.xml</value>
</list>
</property>
</bean>
</beans>
<aspect name="mio:doc" />
Abbiamo avuto il tuo stesso problema.
La configurazione del modello nella parte alfresco (repository) con l'introduzione di nuovi tipi/proprietà/aspetti non porta automaticamente ad avere queste estensioni nella share.
Ma vanno aggiunte a mano modificando il file:
Con riferimento alla 3.4.d:
C:\Alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\share-config.xml
Meglio se invece di modificare quello, nei crei uno customizzato sotto:
C:\Alfresco\tomcat\shared\classes\alfresco\web-extension\share-config-custom.xml
Ricordati che i nodi <config> di cui devi fare l'override devono avere l'attributo replace="true" altrimenti l'override ti viene ignorato quando riavvi alfresco.
Spero che ti sia stato d'aiuto… In bocca al lupo…
Francesco.
Archive content from product discussions in Italian.
This group is now closed and content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.