Remove Insights tab in DAM Asset Meta Data

Avatar

Avatar
Validate 10
Level 3
vsharm
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

5 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Validate 10
Level 3
vsharm
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

5 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back 10
View profile
vsharm
Level 3

19-04-2018

We are trying to implement custom meta along with some OOTB meta data. Our issue is that the last tab always comes up with the "Insights" tab which our product team does not want. It is coming OOTB but wondering if there is a way for us to hide it. We try looking at the - /libs/granite/ui/components/coral/foundation/tabs which is responsible for rendering the tabs but dont see anything there.

Does anyone know if it is possible to remove/customize the "Insights" table? We are using AEM 6.3.

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 10
Level 3
vsharm
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

5 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back 10
View profile

Avatar
Validate 10
Level 3
vsharm
Level 3

Likes

9 likes

Total Posts

57 posts

Correct reply

5 solutions
Top badges earned
Validate 10
Validate 1
Give Back 5
Give Back 3
Give Back 10
View profile
vsharm
Level 3

23-04-2018

Overlay solution did not work because the configuration are under /config folder in aem 6.3. If it was under /app or /etc then we could have used overlay.

We created a separate clientLib with the categories as - categories="[dam.gui.coral.metadataeditor,granite.ui.coral.foundation]"/> and added our custom javascript which will loop through and hide the insights tab something like -

$( document ).ready(function() {
   var dataElements = document.querySelectorAll('[data-foundation-tracking-event]');

   for(var i=0; i < dataElements.length; i++) {

   if(dataElements[i].textContent == 'Insights') {
   dataElements[i].style.display = 'none';

  }

  }
});

Answers (3)

Answers (3)

Avatar

Avatar
Boost 5
Level 3
ashu4pma
Level 3

Likes

17 likes

Total Posts

38 posts

Correct reply

15 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 3
ashu4pma
Level 3

Likes

17 likes

Total Posts

38 posts

Correct reply

15 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
ashu4pma
Level 3

23-04-2018

Then I would consider this as a product bug and overlay extension should work.

The form under /libs goes to /conf when extended at the project level (Administrator role).

All customizations needed at a project level for OOTB forms /libs go to /apps. (Solution Integrator role)

Say at the project level, it is decided to hide Insight Tab so that any user admin can't see when metadata schema is being defined under /conf for the project. Then OOTB form offered from location /libs should be extensible through /apps overlay and further User Administrators can define project level forms under /conf using the merged resource form (/libs + /apps).

The JS approach works but not elegant as Project administrator can still see Insights under /conf structure.

Avatar

Avatar
Boost 5
Level 3
ashu4pma
Level 3

Likes

17 likes

Total Posts

38 posts

Correct reply

15 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 3
ashu4pma
Level 3

Likes

17 likes

Total Posts

38 posts

Correct reply

15 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
ashu4pma
Level 3

19-04-2018

The Insights form exist at location [0]. Try overlay the form using [1] and hide. If it doesn't work then log a hotfix request to get fix from Product.

Thanks

[0] /libs/dam/content/schemaeditors/forms/insights

[1]Apache Sling :: Resource Merger (org.apache.sling.resourcemerger)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

19-04-2018

As this is not documented - we asked the team to look here.