yuuvis® RAD Q&A

+1 vote
by (760 points)

Is it possible to only show a custom plugin for a specified objecttype?

If no, is it planned in a future version?

Use case is a specific plugin, which only makes sense on a specific objecttype and not on all objecttypes in the system. Simplest example is a map plugin which makes no sense on a document object with no address or gps fields :-)

4 Answers

0 votes
by (19.2k points)

Will come within version 4.5.
We are working on a plugin example for a photo object with location coordinates. For this object type a map should show the place where the photo was shot. The example will be documented tomorrow.

by (760 points)
Is the questioned function now implemented?
I found no documentation or example on how to restrict a plugin to specific object types.
0 votes
by (760 points)

Is this function now implemented?
I found no documentation or example on how to restrict a plugin to specific object types.

by (19.2k points)
This feature is not completed yet, but there is an interims solution. You can hide tabs via styling, e.g.:

eo-object-details[data-type=personalakte] #indexdata-label, eo-object-details[data-type=personalakte] #indexdata {
    display: none;
}

data-type represents DMSObject typeName
# represents plugin/tab id

Issue: In case that tab was selected & same time is hidden via css, you have to change tab container selection manually
0 votes
by (19.2k points)

We have discussed this requirement again and decided now not to control whether an aspect should be shown or not. We think that an user will be irritated here.

Our suggestion is, to handle such additional aspects in this way:
give the aspect a neutral name like 'Custom' or 'Extensions'.
Show an icon if nothing can be shown for the objecttype and show that special information to the correspondig objecttype.
In this way you do have only one plugged in aspect which may offer 10 different views for the different objecttypes.

by (760 points)
Ok, this is not really a satisfying answer. Why using a plugin framework if you should implement only a single plugin where all the logic will be implemented in by yourself?

We will go the workaround with the styles so far.
0 votes
by (2.9k points)

We also need this feature. Is it already implemented?

by (19.2k points)
Ýes, you can control when an object detail aspect is offered. You will find an example in this documentation.

https://help.optimal-systems.com/yuuvis_develop/display/onpremise/Custom+Plug-in+via+Tab+Container
...