AnsweredAssumed Answered

Custom aspect not working

Question asked by onno182 on Oct 5, 2015
Latest reply on Oct 8, 2015 by jpotts
I am having trouble getting a custom aspect to work with Alfresco.

The custom aspect is displayed in the 'Manage Aspects' window, and I can add it.  However, after it is added, and I go to the 'Edit Properties' window, nothing is displayed from the aspect.

What am I doing wrong?.


<?xml version='1.0' encoding='UTF-8'?>
    <!– Registration of new models –>
    <bean id="someco.dictionaryBootstrap" parent="dictionaryModelBootstrap" depends-on="dictionaryBootstrap">
        <property name="models">


<model name="mv:projectmodel" xmlns="">
  <description>Marma Vastgoed Project Model</description>
  <author>Onno van der Heijden</author>

    <import uri="" prefix="d" />
    <import uri="" prefix="cm" />

    <namespace uri="" prefix="mv" />

    <aspect name="mv:project">

        <property name="mv:name">
          <title>Project Name</title>

        <property name="mv:start">
          <title>Project Start Date</title>

        <property name="mv:end">
          <title>Project End Date</title>



I have added
<aspect name="mv:project" />
to the aspects element within
<config evaluator="string-compare" condition="DocumentLibrary" replace="true">
as so:

         <!– Aspects that a user can see –>
            <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="cm:geographic" />
            <aspect name="exif:exif" />
            <aspect name="audio:audio" />
            <aspect name="cm:indexControl" />
            <aspect name="dp:restrictable" />
            <aspect name="mv:project" />

         <!– Aspects that a user can add. Same as "visible" if left empty –>

         <!– Aspects that a user can remove. Same as "visible" if left empty –>

And within the same config patent, the following in the forms tags:

         <!– Default form configuration used on the document details and edit metadata pages –>
               <show id="mv:name"  />
               <field id="mv:name" label-id="prop.mv_name" />

         <!– Document Library pop-up Edit Metadata form –>
         <form id="doclib-simple-metadata">
               <show id="mv:name" />
               <field id="mv:name" label-id="prop.mv_name" />

         <!– Document Library Inline Edit form –>
         <form id="doclib-inline-edit">
               <show id="mv:name" />
               <field id="mv:name" label-id="prop.mv_name" />