difference in Editable template created from maven and configuration browser | Community
Skip to main content
Level 2
December 18, 2018
Solved

difference in Editable template created from maven and configuration browser

  • December 18, 2018
  • 9 replies
  • 4575 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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

9 replies

arunpatidar
Community Advisor
Community Advisor
December 18, 2018

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
VeenaVikraman
Community Advisor
Community Advisor
December 18, 2018

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.

Level 2
December 18, 2018

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

arunpatidar
Community Advisor
Community Advisor
December 18, 2018

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
Level 2
December 18, 2018

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?

arunpatidar
Community Advisor
Community Advisor
December 18, 2018

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

Templates

Arun Patidar
Level 2
December 18, 2018

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

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
December 18, 2018

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
Level 2
December 19, 2018

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 .