AnsweredAssumed Answered

Surf Extension - edit-metadata forms component override

Question asked by loftux Moderator on May 3, 2012
Latest reply on May 4, 2012 by afaust
In the edit-metadata page I want to use a special form if the document has a specific aspect applied. For what I can tell by mere forms config you cannot do this based on aspect, only on document type.
So instead looking into surf extension, if I can do something like

         <description>Show edit metadata for specific form</description>
                  <sub-component id="edit-metadata">
                        <evaluation id="hide">
                  <sub-component id="edit-metadata-new" index="25">
and  with the new subcomponent adding <formId>customformid</formId> I think I can achieve what I want, using a special form.
But that means an evaluator that can evaluate on hasAspect. There is one org.alfresco.web.evaluator.HasAspectEvaluator but is this available in this context? Does Surf at this time now about the node, and can do evaluations based on that?