cancel
Showing results for 
Search instead for 
Did you mean: 

Form service for a custom aspect

webdesigner
Champ in-the-making
Champ in-the-making
Hello,

I have nodes of type: cm:content that having my custom aspect. This aspect contain properties, and I want to to achieve that ONLY these properties are displayed in the details view/edit in Share.

But if I add form configuration to the share-config-custom.xml:

<config evaluator="aspect" condition="myNs:myAspect">
      <forms>
         <form>
…..


It will be added additionally to all properties displayed for the cm:content (cm:description, cm:title etc.).

I found two ways to get it worked:

1. Add custom form template for edit-form, view-form

2. Overwrite core configs for cm:content (very nasty)


So the question is:

May be there is another way to do that? Something like set an "overwrite" flag for the config evaluator?

Thanks in advance

Best regards
Vitali
2 REPLIES 2

jpotts
World-Class Innovator
World-Class Innovator
Why not create a new form config based on the type instead of the aspect. If you don't have a type, you can use cm:content. Of course, the downside is that this will change the properties that are displayed for *all* instances of that type, regardless of whether or not the aspect has been applied, which may not be what you want.

Jeff

webdesigner
Champ in-the-making
Champ in-the-making
Hi,

ok, thanks for tip, it seems that Share customization works easier for types as for aspects.

Best regards
Vitali
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.