cancel
Showing results for 
Search instead for 
Did you mean: 

New Aspect isn't showing up in Alfresco Share

grauenwolf
Champ in-the-making
Champ in-the-making
I created a new aspect using these instructions. The aspect appears to be working in Alfresco explorer but not in Alfresco Share.

https://forums.alfresco.com/en/viewtopic.php?f=12&t=41081

What exrtra steps are needed for Share?

Jonathan Allen
4 REPLIES 4

billerby
Champ on-the-rise
Champ on-the-rise
Hi,

You will have to add it to a configuration element in share-config-custom.xml for it to show up as an alternative. Googled the example below:

 <config evaluator="string-compare" condition="DocumentLibrary">

        <!–
         Used by the "Manage Aspects" action

         For custom aspects, remember to also add the relevant i18n string(s)
            cm_myaspect=My Aspect
        –>
        <aspects>
            <!– Aspects that a user can see –>
            <visible>
                <aspect name="mr:rateable" />
            </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>

/Erik

grauenwolf
Champ in-the-making
Champ in-the-making
Thanks, that worked.

But now how do I get the properties defined by my aspect to show up in Share? (They look correct in Alfresco Explorer.)

billerby
Champ on-the-rise
Champ on-the-rise
Well then you will have to define a form configuration for your aspect in share-config-custom.xml

Example from the wiki page: http://wiki.alfresco.com/wiki/Forms below:

(change the condition and the fields to match your aspect)

<config evaluator="node-type" condition="cm:content">
   <forms>
      <form>
         <field-visibility>
            <show id="cm:name" />
            <show id="cm:title" force="true" />
            <show id="size" for-mode="view" />
         </field-visibility>
      </form>
   </forms>
</config>

grauenwolf
Champ in-the-making
Champ in-the-making
Thank you.