Quantcast
Channel: Adobe Community : Unanswered Discussions - Digital Marketing Suite
Viewing all articles
Browse latest Browse all 937

Determine if current component is being pulled in by paragraph reference?

$
0
0

Is there a way to determine at the component level if the current component is currently being imported into a paragraph reference component? A simple example would look like this in the component's jsp:

 

if (/* Being Referenced */) {     out.write("This component is pulled in by a paragraph reference");}else{     out.write("This component is the original");}

 

I thought i'd be able to tell by using resource.getParent(), but that returns the original component's parent.

 

I know i could compare the page path with the component's resource path if they were on different pages, but that wouldn't work out if the reference component and original component were on the same page.


Viewing all articles
Browse latest Browse all 937

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>