我一直在尝试学习本教程中有关Alfresco自定义内容类型的内容
http://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#localizing-strings-for-custom-content-models。
但是,当我进入“测试您的更改”步骤并开始管理规则时,我无法在下拉列表中获得创建的自定义类型(sc_doc和sc_whitepaper)。
我的share-config-custom.xml:
<!-- Share configuration related to this particular Share module extension, such as:
- Doclib action config
- Form config
- Aspect and Type config
Note. Any configuration related to the whole Share.war webapp
(i.e. not specific to this share extension) should be
placed in the environment specific config:
alfresco/tomcat/shared/classes/alfresco/web-extension/share-config-custom.xml file
-->
<alfresco-config>
<!-- Document Library config section -->
<config evaluator="string-compare" condition="DocumentLibrary">
<aspects>
<!-- Aspects that a user can see -->
<visible>
<aspect name="sc:webable" />
<aspect name="sc:productRelated" />
</visible>
<!-- Aspects that a user can add. Same as "visible" if left empty -->
<addable>
</addable>
<!-- Aspects that a user can remove. Same as "visible" if left empty -->
<removeable>
</removeable>
</aspects>
</config>
<config evaluator="node-type" condition="DocumentLibrary">
<types>
<type name="cm:content">
<subtype name="sc:doc" />
<subtype name="sc:whitepaper" />
</type>
<type name="sc:doc">
<subtype name="sc:whitepaper" />
</type>
</types>
</config>
</alfresco-config>PS:在使用对.xml所做的每一次更改之后,我必须重新运行'mvn安装‘吗?
任何帮助都将不胜感激!
发布于 2015-12-29 13:33:53
我知道我发这个答案有点晚了
我的解决方案有点差,但它对我有用:)
我希望它也能对你有用。
奇怪的是,我遵循相同的教程,在“测试您的更改”阶段,无法在服务器上看到我的自定义类型。
因此,为了使它在我的共享项目中工作,我改变了
share-config-custom.xml
从src/main/resources/META-INF到src/main/amp/config/alfresco/web-extension
并重新启动alfresco,现在可以在服务器上的list类型中查看我的自定义类型。
如果你已经用其他方式完成了这件事,请贴上你的答案:)谢谢。
发布于 2015-08-26 09:58:15
我不确定您从maven工件创建了什么样的项目。
在这里,您可以看到所有maven命令的列表。
如果您没有使用本地maven存储库,那么您可以使用"mvn包“来生成新的AMP文件,然后手动将它们部署到alfresco服务器上。
https://stackoverflow.com/questions/32191728
复制相似问题