Bonjour,
J'utilise Alfresco 5.1.e sous eclipse (projet maven), j'ai créé sous site-data->extensions un fihcier myModel.xml qui correspond au modèle personnalisé, j'ai créé aussi dans le même endroit le fichier custom-model-context.xml.
Dans le fichier share-config-custom.xml qui se trouve sous web-extensions j'ai ajouter dans la balise <config evaluator="string-compare" condition="DocumentLibrary"> un contenu:
<create-content>
<content id="myFolder" label="Cap Folder" icon="image.png" itemid="my:folder"/>
</create-content>
Aprés le déployement de projet, quand je choisis à créer un contenu de ce type, l'exception ci-dessous aura lieu:
Si tu as effectivement crée un prefix "my" alors il manque juste de l'include
voila un exemple d'include
<imports>
<import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d" />
<import uri="http://www.alfresco.org/model/content/1.0" prefix="cm" />
<import uri="http://www.alfresco.org/model/datalist/1.0" prefix="dl" />
</imports>
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
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.