Community for yuuvis® RAD

0 votes
by (740 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 :-)

3 Answers

0 votes
by (12.9k 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 (740 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 (740 points)

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

by (12.9k 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 (12.9k 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 (740 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.
...