Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

difference in Editable template created from maven and configuration browser

Avatar

Level 3

Hi,

I execute maven command for creating proejct so automatically all the project structure is created and under tools >templates><projectname> folder is created then under this folder click on create template then show template types <yourproject>empty page template is shown for creating then all the customization we can done with this templates and create many templatees as we need choosing this template type. then what is the use of tools>general>configuration browser for creating editable templates ?

plzz help me

thanks in advance

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

So you want to create site using custom template then you need to explicitly add allowedPath property in your template. or you can directly create site without using template from CRXDE and add cq:allowedtemplate

you can refer we-retail for reference

/content/we-retail/jcr:content

/content/we-retail/language-masters/jcr:content



Arun Patidar

View solution in original post

9 Replies

Avatar

Community Advisor

Hi The option tools->general->Configuration is not only to create templates but also other things like CF.

The maven did the same thing via command, it created your project configuration for template under /conf/



Arun Patidar

Avatar

Community Advisor

Maven makes your job easy by giving you the basic structure which is needed to start with your project. But always if additional configurations are need you have to still do it manually under the configurations.

Avatar

Level 3

thanks arun but when i create editable template from configuration browser and enable the template but if like i click on create page under site console then this created template are not shown

Avatar

Community Advisor

You need to allowed your custom templates in your site root page from page properties -> advanced.

You can see available templates from CRXDE , there will be a property called cq:allowedTemplates which restrict use of templates.



Arun Patidar

Avatar

Level 3

ok i understand that but normally if i not execute the maven command and direct i want to create page from my configuration browser template and there is no default page available for going to page properties then how to use this template?

Avatar

Community Advisor

You can use any template inside any site if you specified as cq:allowedTemplates

Templates



Arun Patidar

Avatar

Level 3

ok so where i mention this property if i have not any page

Avatar

Correct answer by
Community Advisor

So you want to create site using custom template then you need to explicitly add allowedPath property in your template. or you can directly create site without using template from CRXDE and add cq:allowedtemplate

you can refer we-retail for reference

/content/we-retail/jcr:content

/content/we-retail/language-masters/jcr:content



Arun Patidar

Avatar

Level 3

i created my site manually in crxde so conclusion is when we create editable template from configuration browser if we want to use this perticular template in all our site for creating page so we have to create site manually from crxde for using this template thank you so much for help .