首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >自定义内容类型未显示

自定义内容类型未显示
EN

Stack Overflow用户
提问于 2015-08-24 21:05:41
回答 2查看 434关注 0票数 1

我一直在尝试学习本教程中有关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:

代码语言:javascript
复制
<!-- 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安装‘吗?

任何帮助都将不胜感激!

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-12-29 13:33:53

我知道我发这个答案有点晚了

我的解决方案有点差,但它对我有用:)

我希望它也能对你有用。

奇怪的是,我遵循相同的教程,在“测试您的更改”阶段,无法在服务器上看到我的自定义类型。

因此,为了使它在我的共享项目中工作,我改变了

share-config-custom.xml

src/main/resources/META-INFsrc/main/amp/config/alfresco/web-extension

并重新启动alfresco,现在可以在服务器上的list类型中查看我的自定义类型。

如果你已经用其他方式完成了这件事,请贴上你的答案:)谢谢。

票数 1
EN

Stack Overflow用户

发布于 2015-08-26 09:58:15

我不确定您从maven工件创建了什么样的项目。

  • 存储库AMP原型
  • 全合一(AIO)原型
  • 共享AMP原型

在这里,您可以看到所有maven命令的列表。

如果您没有使用本地maven存储库,那么您可以使用"mvn包“来生成新的AMP文件,然后手动将它们部署到alfresco服务器上。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32191728

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档