Alfresco 4.2c自定义内容类型未显示在Share中

时间:2013-01-24 11:55:55

标签: alfresco alfresco-share

我已经从安装在Ubuntu Server 12.04LTS中的.bin安装了Alfresco 4.2c

我已按照ecmarchitect.com "Working with custom content types"第2版创建了新的内容类型。

所以我创建了以下文件:

全部在/opt/alfresco-4.2.c/tomcat/webapps:

  • /share/WEB-INF/classes/alfresco/web-extension/share-config-custom.xml
  • /alfresco/WEB-INF/classes/alfresco/extension/mypro-model-context.xml
  • /alfresco/WEB-INF/classes/alfresco/extension/model/apModel.xml

所有创建的只是一个非常基本的例子,如指南中所示。然后我做了“sudo service alfresco restart”,当我登录Share as Admin时,我无法在规则中看到我的自定义内容类型和方面。

此外,我无法在文档库中创建任何自定义内容。

还有什么我需要做的吗?我怎么能开始调试原因?

4 个答案:

答案 0 :(得分:2)

第24页:将您的等效表单配置放在share-config-custom.xml

<config evaluator="aspect" condition="sc:webable">
<forms>
<form>
<field-visibility>
<show id="sc:published" />
<show id="sc:isActive" />
</field-visibility>
<appearance>
<field id="sc:published" label-id="prop.sc_published" />
<field id="sc:isActive" label-id="prop.sc_isActive" />
</appearance>
</form>
</forms>
</config>

表示类型使用评估程序“node-type”

答案 1 :(得分:1)

您应该配置您的share-config-custom.xml文件:

   

  <aspects>
     <!-- Aspects that a user can see -->
     <visible>
        <aspect name="cm:generalclassifiable" />
        <aspect name="cm:complianceable" />
        <aspect name="cm:dublincore" />
        <aspect name="cm:effectivity" />
        <aspect name="cm:summarizable" />
        <aspect name="cm:versionable" />
        <aspect name="cm:templatable" />
        <aspect name="cm:emailed" />
        <aspect name="emailserver:aliasable" />
        <aspect name="cm:taggable" />
        <aspect name="app:inlineeditable" />
        <aspect name="custom:customAspect" />
     </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>

答案 2 :(得分:1)

您的问题很可能与自定义文件的位置有关。你不应该乱用/ WEB-INF下的文件。请查看此博客文章了解更多信息:http://www.fossoffice.com/en/2013/05/01/custom-types-and-aspects-in-alfresco-4-2-c/

答案 3 :(得分:0)

  

我怎样才能开始调试原因?

尝试创建文本内容类型。然后尝试将此项目的类型更改为您的自定义类型。我发现在能够直接从下拉列表中创建自定义类型之前我能够做到这一点。

这至少会告诉你Alfresco是否知道你的自定义类型。