Expand my Community achievements bar.

SOLVED

Extending foundation components that use a single script

Avatar

Level 3

I need to extend the foundation reference component. All I need to add is an additional <icon> element above the normal content so that the authors know it's a reference and not a regular component. Is there a way to do that without including the foundation component in the custom reference component? Javascript is not a viable solution either. 

CQ. 5.6.1

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 3

Thanks, I finally solved this by adding a css class to the decoration div.

View solution in original post

4 Replies

Avatar

Level 7

Where do you need to add this additional icon... If you need to change icon of the component that is visible in sidekick, it should just work if you specify resourceSuperType in custom component and add new icon to your custom component. 

Avatar

Level 3

The icon needs to be just above the reference content and it should be visible only in the author environment, even after the path for the reference has been specified in the dialog. So I'm not referring to the sidekick icon for the reference component.

yhanks

Avatar

Level 7

Then only way I see it is extending it and have your own rendering jsp.

Avatar

Correct answer by
Level 3

Thanks, I finally solved this by adding a css class to the decoration div.