cancel
Showing results for 
Search instead for 
Did you mean: 

Create custom aspect

togo
Champ in-the-making
Champ in-the-making
I would like to create a simple custom aspect containing a single text property in Alfresco Community Edition 4.2c.

I did the following:

- Created the aspect's model in /Data dictionary/Models
- Added "<config evaluator>" entries in share-config-custom.xml
- Restarted Alfresco.

However, the aspect doesn't show in Alfresco share's aspect list. Can anyone give me simple step-by-step instructions to create such an aspect in 4.2c?

Thanks!
Daniel
3 REPLIES 3

mitpatoliya
Star Collaborator
Star Collaborator
did you add this entry in in share-config-custom.xml?



    <config evaluator="string-compare" condition="DocumentLibrary">
      <aspects>
       <visible>
        <aspect name="custom:testAspect" />
         </visible>
      </aspects>
</config>

togo
Champ in-the-making
Champ in-the-making
Yes, I added this. The file looks like this:


<alfresco-config>

  <config evaluator="aspect" condition="kb:shortable">
    <forms>
      <form>
        <field-visibility>
          <show id="kb:shorturl" for-mode="view"/>
        </field-visibility>
      </form>
    </forms>
  </config>

  <config evaluator="string-compare" condition="DocumentLibrary">
    <aspects>
        <visible>
            <aspect name="kb:shortable" />
        </visible>
    </aspects>
  </config>

</alfresco-config>


However, Alfresco share seems to ignore that file, even though it is correctly named <i>share-config-custom.xml</i>.

majed_ali
Champ in-the-making
Champ in-the-making
Can anyone give us simple step-by-step instructions????