Dynamic Template | AEM 6.4

Avatar

Avatar
Level 1
rohanh72647668
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
rohanh72647668
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
rohanh72647668
Level 1

14-02-2019

Hi,

I created a dynamic template under /conf/<template-name>/settings/wcm. And it is working properly. In order to create a page with this template in my project, i have given the path (/conf/<template-name>/settings/wcm/templates/<template-name>) to cq:allowedTemplates property in page properties of a desired hierarchy. But it is not showing in siteadmin or sites.html option when creating a page.

Please suggest some solution or any configuration that i might be missing.

arunpatidar26

Thanks,
Rohan

Replies

Avatar

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
Gaurav-Behl
MVP

14-02-2019

Did you apply 'cq:conf' property on the root page pointing to your /conf/<site> path ?

Another thing, if you've multiple templates in /conf then use a regex  /conf/<site>/settings/wcm/templates/* for cq:allowedTemplates

Is that template active/enabled?

Avatar

Avatar
Level 1
rohanh72647668
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile

Avatar
Level 1
rohanh72647668
Level 1

Likes

0 likes

Total Posts

2 posts

Correct reply

0 solutions
View profile
rohanh72647668
Level 1

15-02-2019

Thanks for the speedy response.

Template is enabled as I can see the property (status) as enabled.

I have included property cq:conf with value /conf/<my-folder-name> at jcr:content of a page where I should be able to create page with this template.

I have also included template path (/conf/<my-folder-name>/settings/wcm/templates/<template-name> in cq:allowedTemplates at jcr:content of page.

But still the option to create in siteadmin is not coming.

Should we allow this dynamic template in our project template with property (allowedChildren) ? P.S - I have tried that too.

Thanks,

Rohan

Avatar

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
Gaurav-Behl
MVP

15-02-2019

I just tested with just these two configurations pointing to 'we-retail' on a random root page and I was able to create a page and it worked fine.

Could you share relevant screenshots?

If you use only single template then you would get only one option as template to create a page from within siteadmin modal.

Avatar

Avatar
Give Back
Level 2
perfecci0nista
Level 2

Likes

7 likes

Total Posts

25 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 5
Boost 3
View profile

Avatar
Give Back
Level 2
perfecci0nista
Level 2

Likes

7 likes

Total Posts

25 posts

Correct reply

0 solutions
Top badges earned
Give Back
Ignite 1
Validate 1
Boost 5
Boost 3
View profile
perfecci0nista
Level 2

15-02-2019

Do we need cq:conf property or is it optional. I dont see that on my root page and I am able to create page with my new template.

Avatar

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile

Avatar
Boost 250
MVP
Gaurav-Behl
MVP

Likes

250 likes

Total Posts

1,147 posts

Correct reply

283 solutions
Top badges earned
Boost 250
Establish
Give back 300
Give Back 50
Give Back 5
View profile
Gaurav-Behl
MVP

15-02-2019

you would still be able to create a page without using cq:conf property on root because you are directly pointing to your template path be it anywhere in the repo but for a true 'context aware' setup, you'd need this property

check -

Apache Sling :: Apache Sling Context-Aware Configuration

AEM /conf and ConfMgr - Adobe Experience Manager | AEM/CQ | Apache Sling

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

15-02-2019

Follow this article to learn how to create Editable Templates and pages based on them.

Adobe Experience Manager Help | Creating an Adobe Experience Manager 6.4 website using Editable Temp...

You can watch these short videos too:

Scott's Digital Community: Guided Journey for Using Adobe Experience Manager Core Components

Both of these show you how to create pages from editable templates.

Once you create an editable template and enable it (as shown in these links) - you can create pages.

When you read this article and watch the videos - you will see no need to set the props you are referring to create pages on editable templates.