How do I reference a component from other apps/<myproject2> | Community
Skip to main content
Level 3
October 16, 2015
Solved

How do I reference a component from other apps/<myproject2>

  • October 16, 2015
  • 2 replies
  • 583 views

Lets say we have a component called" myProjectAComponent" that is in apps/myProjectA/myProjectAComponent. now in /apps/myProjectB, how can I use this myProjectACompnent ?

 

Thank you

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 smacdonald2008

One you define a component and place it on the CQ sidekick -- you can use that in other projects. For example -- here is a component defined at:

/apps/nook/components

You can now use this in other CQ projects via the sidekick (for example - /apps/geometrixx) as shown here:

[img]sidekick.png[/img]

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

One you define a component and place it on the CQ sidekick -- you can use that in other projects. For example -- here is a component defined at:

/apps/nook/components

You can now use this in other CQ projects via the sidekick (for example - /apps/geometrixx) as shown here:

[img]sidekick.png[/img]

Sham_HC
Level 10
October 16, 2015

If you are planning to extend use sling:resourceSuperType.