Extending foundation components that use a single script | Community
Skip to main content
gabrielav200407
Level 2
October 16, 2015
Solved

Extending foundation components that use a single script

  • October 16, 2015
  • 4 replies
  • 1833 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by gabrielav200407

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

4 replies

viveksachdeva
Community Advisor
Community Advisor
October 16, 2015

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. 

gabrielav200407
Level 2
October 16, 2015

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

viveksachdeva
Community Advisor
Community Advisor
October 16, 2015

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

gabrielav200407
gabrielav200407AuthorAccepted solution
Level 2
October 16, 2015

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