2015-08-24 31 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發佈你的答案,如果你已經通過任何其他方式做到這一點:) 謝謝。