Skip to main content
Level 3
Oct 16, 2015 2:26 AM UTC
Solved

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

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.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:26 AM UTC

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

Sham_HC
Level 10
Oct 16, 2015 2:26 AM UTC

If you are planning to extend use sling:resourceSuperType.

Translate
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 16, 2015 2:26 AM UTC

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]

Translate