Sri
Sri

Reputation: 1217

cq5 <cq:include> not working

I have included a component in another component jsp using

<cq:include path="navMenu" resourceType="/apps/project/components/common/testMenu" />

getting the following error :

http://localhost:4502/content/testsite/en/about/jcr:content/headernav/navMenu.infinity.json? 404 (Not Found)

I am having the same issues with all the components when used <cq:include> tag inside another component jsp.

scenario:

I appreciate any help on this.

Thank you, Sri

Error: enter image description here

Success - drag and drop individual component enter image description here

Upvotes: 1

Views: 767

Answers (1)

Manisha  Bano
Manisha Bano

Reputation: 1903

Try removing the initial "/" like <cq:include path="navMenu" resourceType="apps/project/components/common/testMenu" />

Also give relative path as<cq:include path="navMenu" resourceType="project/components/common/testMenu" />

Upvotes: 1

Related Questions