Volodymyr
Volodymyr

Reputation: 57

AEM CQ5.6 Add config page in other page

I have homepage(template) and homepage(page) also I create config(template) and config(page)

I want to when the homepage will create the config page is inserted into the homepage through identifier(id) config.

(Later config page will be used to config other components, but to start its body must only show the message from 'Config page'. inherit from foundation/components/page.)

How to implement this functionality?

Upvotes: 0

Views: 238

Answers (1)

Oliver
Oliver

Reputation: 6260

Well you can do that by using <cq:include path="configPage" resourceType="myapp/components/configPage" />

But I don't understand why an ID is needed. When you can directly add page. using cq:include

Add the above tag inside your homepage.jsp It will include the config.jsp inside it

Upvotes: 1

Related Questions