Reputation: 301
My scenario is the following
Component A
main.jsp
other.jsp
Other.jsp is included in main.jsp
Component B needs to be implemented in sightly, and I need the have another implementation for other.jsp, but main.jsp stays the same in Component B. Properties:
sling:resourceSuperType=Component A
sling:resourceType= Component B
I have to mention that component A is already implemented. Which is the best aproach?
Upvotes: 0
Views: 172
Reputation: 9402
Suppose you have this structure:
Component A
main.jsp
other.jsp
Component B - sling:resourceSuperType=Component A
main.jsp
In this case, main.jsp of B will override main.jsp of A. But since B doesn't have its own other.jsp, the other.jsp of A would be used if it is referenced.
It sounds like you have created main.html to try to override main.jsp. To override you need it to be a JSP with the same name. See also scenario 2 of https://stackoverflow.com/a/16120322/230055
Upvotes: 1