2015-08-24 32 views
1

我一直在试图遵循本教程的Alfresco的自定义内容类型Alfresco的自定义内容类型不显示

http://ecmarchitect.com/alfresco-developer-series-tutorials/content/tutorial/tutorial.html#localizing-strings-for-custom-content-models

但是,当我进入“测试您的更改”步骤并开始管理规则时,我无法设置自定义类型(sc_doc和sc_whitepaper)在下拉列表中。

我的股票配置,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:我有每一个变化我做在使用Eclipse将.xml后重新运行“MVN安装”?

任何帮助将不胜感激!

+0

是的,你需要重新运行。 –

回答

0

我不确定你从Maven工件创建了哪种类型的项目。

  • 库AMP原型
  • 全合一(AIO)原型
  • 分享AMP原型

在这里你可以看到所有maven commands的名单。

如果您未使用本地maven存储库,则可以使用“mvn package”生成新的AMP文件,然后在户外服务器上手动部署它们。

+0

嗨@mitpato!谢谢你的回答,由于缺乏知识和自信,我没有回复。我一直在阅读关于Alfresco的一些信息,这是定制,也许现在你可以帮助我。 我创建了2个工件,一个用于回购,另一个用于分享。我按照链接中的指南进行操作,添加新的文件夹规则时,我应该在'内容类型或子类型'条件中看到新的内容类型。但是,它只有4种默认的Alfresco方面。 – augustus182l

0

我知道我张贴这个答案有点晚了
和我的解决方案是有点差,但它为我工作:)
我希望它也能够为您服务。
奇怪的是,我正在遵循相同的教程,并在'测试您的更改'阶段无法看到我的自定义类型在服务器上。

所以让它在我的共享项目的工作我已经从src/main/resources/META-INF改变
共享配置,custom.xml
的地方src/main/amp/config/alfresco/web-extension
并重新启动露天现在能够在类型列表来查看我的自定义类型服务器。
plz发布你的答案,如果你已经通过任何其他方式做到这一点:) 谢谢。