在Alfresco中创建方面时出错

在Alfresco中创建方面时出错,alfresco,alfresco-share,Alfresco,Alfresco Share,我是户外初学者。我尝试在alfresco中创建一个示例方面。它已成功添加,并且我能够将该方面标记到某些文档中。此方面下的字段/参数未显示该文档 这是我的密码 /extension/kb model.xml <?xml version="1.0" encoding="UTF-8"?> <!-- Definition of Knowledge Base Model --> <model name="kb:knowledgebase" xmlns="http://ww

我是户外初学者。我尝试在alfresco中创建一个示例方面。它已成功添加,并且我能够将该方面标记到某些文档中。此方面下的字段/参数未显示该文档

这是我的密码

/extension/kb model.xml

<?xml version="1.0" encoding="UTF-8"?>

<!-- Definition of Knowledge Base Model -->

<model name="kb:knowledgebase" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!-- Optional meta-data about the model -->
   <description>Knowledge Base Model</description>
   <author>Will Abson</author>
   <version>1.0</version>

   <!-- Imports are required to allow references to definitions in other models -->
   <imports>
      <!-- Import Alfresco Dictionary Definitions -->
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <!-- Import Alfresco Content Domain Model Definitions -->
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
   </imports>

   <!-- Introduction of new namespaces defined by this model -->
   <namespaces>
      <namespace uri="http://www.alfresco.com/model/knowledgebase/1.0" prefix="kb"/>
   </namespaces>

    <aspects>
      <!-- Definition of new Content Aspect: Knowledge Base Document -->
      <aspect name="kb:referencable">
         <title>Knowledge Base Referencable</title>
         <properties>
            <property name="kb:documentRef">
               <type>d:text</type>
            </property>
         </properties>
      </aspect>
   </aspects>

</model>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

    <!-- Registration of new models -->
    <bean id="extension.kb.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/kb-model.xml</value>
            </list>
        </property>
    </bean>

     <bean id="extension.kb.resourceBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
       <property name="resourceBundles">
          <list>
             <value>alfresco.messages.knowledgebase</value>
          </list>
       </property>
    </bean>

</beans>
     <visible>
            <aspect name="cm:emailed" />
            <aspect name="emailserver:aliasable" />
            <aspect name="cm:taggable" />
            <aspect name="app:inlineeditable" />
            <aspect name="cm:geographic" />
            <aspect name="exif:exif" />
            <aspect name="audio:audio" />
            <aspect name="cm:indexControl" />
            <aspect name="dp:restrictable" />
            <aspect name="kb:referencable" />
         </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 evaluator="aspect" condition="kb:referencable">
   <forms>
      <form>
         <field-visibility>
            <!-- fields from my example aspect -->
            <show id="kb:documentRef" />
         </field-visibility>
        <appearance>
                <field id="kb:documentRef" />
        </appearance>
      </form>
   </forms>
</config>

知识库模型
将免除
1
可参考的知识库
d:文本
/extension/kb model context.xml

<?xml version="1.0" encoding="UTF-8"?>

<!-- Definition of Knowledge Base Model -->

<model name="kb:knowledgebase" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!-- Optional meta-data about the model -->
   <description>Knowledge Base Model</description>
   <author>Will Abson</author>
   <version>1.0</version>

   <!-- Imports are required to allow references to definitions in other models -->
   <imports>
      <!-- Import Alfresco Dictionary Definitions -->
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <!-- Import Alfresco Content Domain Model Definitions -->
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
   </imports>

   <!-- Introduction of new namespaces defined by this model -->
   <namespaces>
      <namespace uri="http://www.alfresco.com/model/knowledgebase/1.0" prefix="kb"/>
   </namespaces>

    <aspects>
      <!-- Definition of new Content Aspect: Knowledge Base Document -->
      <aspect name="kb:referencable">
         <title>Knowledge Base Referencable</title>
         <properties>
            <property name="kb:documentRef">
               <type>d:text</type>
            </property>
         </properties>
      </aspect>
   </aspects>

</model>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

    <!-- Registration of new models -->
    <bean id="extension.kb.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/kb-model.xml</value>
            </list>
        </property>
    </bean>

     <bean id="extension.kb.resourceBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
       <property name="resourceBundles">
          <list>
             <value>alfresco.messages.knowledgebase</value>
          </list>
       </property>
    </bean>

</beans>
     <visible>
            <aspect name="cm:emailed" />
            <aspect name="emailserver:aliasable" />
            <aspect name="cm:taggable" />
            <aspect name="app:inlineeditable" />
            <aspect name="cm:geographic" />
            <aspect name="exif:exif" />
            <aspect name="audio:audio" />
            <aspect name="cm:indexControl" />
            <aspect name="dp:restrictable" />
            <aspect name="kb:referencable" />
         </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 evaluator="aspect" condition="kb:referencable">
   <forms>
      <form>
         <field-visibility>
            <!-- fields from my example aspect -->
            <show id="kb:documentRef" />
         </field-visibility>
        <appearance>
                <field id="kb:documentRef" />
        </appearance>
      </form>
   </forms>
</config>

alfresco/extension/kb-model.xml
alfresco.messages.knowledgebase
/web扩展/share config custom.xml

<?xml version="1.0" encoding="UTF-8"?>

<!-- Definition of Knowledge Base Model -->

<model name="kb:knowledgebase" xmlns="http://www.alfresco.org/model/dictionary/1.0">

   <!-- Optional meta-data about the model -->
   <description>Knowledge Base Model</description>
   <author>Will Abson</author>
   <version>1.0</version>

   <!-- Imports are required to allow references to definitions in other models -->
   <imports>
      <!-- Import Alfresco Dictionary Definitions -->
      <import uri="http://www.alfresco.org/model/dictionary/1.0" prefix="d"/>
      <!-- Import Alfresco Content Domain Model Definitions -->
      <import uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
   </imports>

   <!-- Introduction of new namespaces defined by this model -->
   <namespaces>
      <namespace uri="http://www.alfresco.com/model/knowledgebase/1.0" prefix="kb"/>
   </namespaces>

    <aspects>
      <!-- Definition of new Content Aspect: Knowledge Base Document -->
      <aspect name="kb:referencable">
         <title>Knowledge Base Referencable</title>
         <properties>
            <property name="kb:documentRef">
               <type>d:text</type>
            </property>
         </properties>
      </aspect>
   </aspects>

</model>
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>

    <!-- Registration of new models -->
    <bean id="extension.kb.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">
            <list>
                <value>alfresco/extension/kb-model.xml</value>
            </list>
        </property>
    </bean>

     <bean id="extension.kb.resourceBundle" class="org.alfresco.i18n.ResourceBundleBootstrapComponent">
       <property name="resourceBundles">
          <list>
             <value>alfresco.messages.knowledgebase</value>
          </list>
       </property>
    </bean>

</beans>
     <visible>
            <aspect name="cm:emailed" />
            <aspect name="emailserver:aliasable" />
            <aspect name="cm:taggable" />
            <aspect name="app:inlineeditable" />
            <aspect name="cm:geographic" />
            <aspect name="exif:exif" />
            <aspect name="audio:audio" />
            <aspect name="cm:indexControl" />
            <aspect name="dp:restrictable" />
            <aspect name="kb:referencable" />
         </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 evaluator="aspect" condition="kb:referencable">
   <forms>
      <form>
         <field-visibility>
            <!-- fields from my example aspect -->
            <show id="kb:documentRef" />
         </field-visibility>
        <appearance>
                <field id="kb:documentRef" />
        </appearance>
      </form>
   </forms>
</config>

您忘记关闭第350行方面下方的
标记

--更新--

此部件位于
标记内,并且应位于标记外

     <!-- Added by vipin kp to add new aspects to alfresco -->
<!--*********************************************************************************************************-->
      <!-- cm:content type (existing nodes) -->

   <!-- cm:content type (existing nodes) -->


<config evaluator="aspect" condition="kb:referencable">
   <forms>
      <form>
         <field-visibility>
            <!-- fields from my example aspect -->
            <show id="kb:documentRef" />
         </field-visibility>
    <appearance>
        <field id="kb:documentRef" />
    </appearance>
      </form>
   </forms>
</config>

<!-- End of Form customization for whitepaper -->

您的共享配置自定义不正确。 下面是完整的xml。


假的
假的
生产
手册
真的
露天CSRFToken
露天CSRFToken
露天CSRFToken
邮递
^\/page\/caches\/dependency\/clear | ^\/page\/index | ^\/page\/surfBugStatus | ^\/page\/modules\/deploy | ^\/page\/modules\/page\/api\/javascript\/debugger
假的
https://myfdqn.com/.*
假的
https://myfdqn.com
邮递
^/page/dologin.*.^^\/page/site\/[^\/]+\/start workflow^^\/page/start workflow
假的
https://myfdqn.com/.*
假的
https://myfdqn.com
得到
^/第页/dologout*
露天CSRFToken
露天CSRFToken
.*
露天CSRFToken
露天CSRFToken
得到
^/第页/*
.*
.*
露天CSRFToken
露天CSRFToken
邮递
^多部分/*
.*
露天CSRFToken
露天CSRFToken
假的
https://myfdqn.com/.*
假的
https://myfdqn.com
发布|放置|删除
.*
露天CSRFToken
露天CSRFToken
假的
https://myfdqn.com/.*
假的
https://myfdqn.com
假的
1000
7000
http://localhost:8084/alfresco
假的
application/vnd.openxmlformats-officedocument.wordprocessingml.document
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
应用程序/vnd.ms-powerpoint
真的