{"id":39,"date":"2014-07-04T07:25:00","date_gmt":"2014-07-04T07:25:00","guid":{"rendered":"https:\/\/scgindia.in\/lhotsetechnologies\/dev\/2014\/07\/04\/page-without-template-in-cq5\/"},"modified":"2019-09-19T12:55:39","modified_gmt":"2019-09-19T12:55:39","slug":"page-without-template-in-cq5","status":"publish","type":"post","link":"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/","title":{"rendered":"Page without Template in CQ5"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><br \/>\n<\/span><span style=\"color: #274e13;\">During CQ5 interviews, a general question has been asked &#8211;<\/span><br \/>\n<span style=\"color: #274e13;\"><br \/>\n<\/span><b><i><span style=\"color: #660000;\">Can we create a page without template?<\/span><\/i><\/b><br \/>\n<span style=\"color: #274e13;\"><b><i><br \/>\n<\/i><\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">in this post I will explain it&#8217;s answer in detail. before knowing the answer of this question just rethink the<b><i> definition of a Template<\/i><\/b>.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>&nbsp;<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><i><span style=\"color: #274e13;\"><b>&#8220;A template is used to create a Page and defines which components can be used within the selected scope.<\/b><\/span><span style=\"color: #660000;\"><b> A template is a hierarchy of nodes that has the same structure as the page to be created,<\/b> <b>but without any actual content<\/b>&#8220;<\/span><\/i><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><i>&nbsp;<\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">when you create a template using crxde lite then it creates two nodes&nbsp;<\/span><span style=\"color: #274e13;\">by default&nbsp;<\/span><span style=\"color: #274e13;\">having primaryTypes&nbsp;<\/span><br \/>\n<b><i><span style=\"color: #660000;\">cq:Template<\/span><\/i><\/b><span style=\"color: #274e13;\"> as parent<\/span><br \/>\n<i><b><span style=\"color: #660000;\">cq:PageContent<\/span><\/b><\/i><span style=\"color: #274e13;\">&nbsp;as child<\/span>&nbsp;<\/p>\n<p><span style=\"color: #274e13;\">When we create a page using template via siteadmin then siteadmin uses&nbsp;&nbsp;<\/span><span style=\"color: #274e13;\"><b><i>content page component<\/i><\/b> &nbsp;&amp; it <b><i>copies all the child nodes under the template to a newly created page node<\/i><\/b>.<\/span><br \/>\n<span style=\"color: #274e13;\"><br \/>\n<\/span><span style=\"color: #274e13;\"><b><i>and once the page has been created it doesn&#8217;t require cq:Template<\/i><\/b> as all the child node of the template copied under<b><i> cq:Page<\/i><\/b> node &amp; these nodes contains all the required properties to display a component group for that page.<\/span><br \/>\n<span style=\"color: #274e13;\"><br \/>\n<\/span><b><i><span style=\"color: #660000;\">It means if you want to create a page without template you can do that but it&#8217;s not possible using siteadmin console as it&#8217;s content page component uses templates to create pages.<\/span><\/i><\/b><br \/>\n<span style=\"color: #274e13;\"><br \/>\n<\/span><br \/>\n<span style=\"color: #274e13;\">you have to do all this stuff manually from crxde i.e.<\/span><br \/>\n<span style=\"color: #274e13;\"><br \/>\n<\/span><b><i><span style=\"color: #274e13;\">create a node of type cq:Page and save, add&nbsp;<\/span><\/i><\/b><i style=\"color: #274e13;\"><b>cq:PageContent<\/b><\/i><b><i><span style=\"color: #274e13;\">&nbsp;node under page node, add required properties to show the component &amp; if you want to add some default node under this&nbsp;<\/span><span style=\"color: #274e13;\">cq:PageContent<\/span><span style=\"color: #274e13;\">&nbsp;node add all of them manually.<\/span><\/i><\/b><br \/>\n<span style=\"color: #274e13;\"><br \/>\n<\/span><b><i><span style=\"color: #660000;\">It&#8217;s not a good practice to create a page manually,<\/span><\/i><\/b><span style=\"color: #274e13;\"> always use templates as it provides different set of properties which are very helpful while creating pages or websites.<\/span><br \/>\n<span style=\"color: #274e13;\">Some of important properties are &#8211;&nbsp;<\/span><br \/>\n<span style=\"color: #274e13;\">allowedTemplates<\/span><br \/>\n<span style=\"color: #274e13;\">allowedPaths <\/span><b><i><span style=\"color: #660000;\">(deprecated&nbsp;Now)<\/span><\/i><\/b><br \/>\n<span style=\"color: #274e13;\">allowedParents<\/span><br \/>\n<span style=\"color: #274e13;\">allowedChildren<\/span><\/p>\n<p><span style=\"color: #274e13;\">these properties can be used for filtering the page structure using siteadmin console.&nbsp;<\/span><span style=\"color: #274e13;\">but <b><i>if you are creating a page manually then you have to take care about all of these restriction by your own<\/i><\/b>.<\/span><\/p>\n<p><i><span style=\"color: #741b47;\">Your comments are&nbsp;heartily&nbsp;welcome. As these comments will update me about my mistakes.<\/span><\/i>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong>Happy Coding<\/strong><br \/>\n<strong>Namah Shivay<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>During CQ5 interviews, a general question has been asked &#8211; Can we create a page without template? in this post [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,33,82,138,52],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-aem","category-cq","category-cq5","category-page-without-template-in-cq5","category-templates"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Page without Template in CQ5 - AEM Blog | Lhotse Technologies<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Page without Template in CQ5 - AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"og:description\" content=\"During CQ5 interviews, a general question has been asked &#8211; Can we create a page without template? in this post [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/\" \/>\n<meta property=\"og:site_name\" content=\"AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"article:published_time\" content=\"2014-07-04T07:25:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-19T12:55:39+00:00\" \/>\n<meta name=\"author\" content=\"Team Lhotse\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Team Lhotse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/\"},\"author\":{\"name\":\"Team Lhotse\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d\"},\"headline\":\"Page without Template in CQ5\",\"datePublished\":\"2014-07-04T07:25:00+00:00\",\"dateModified\":\"2019-09-19T12:55:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/\"},\"wordCount\":390,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"articleSection\":[\"AEM\",\"CQ\",\"CQ5\",\"Page without template in cq5\",\"Templates\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/\",\"name\":\"Page without Template in CQ5 - AEM Blog | Lhotse Technologies\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\"},\"datePublished\":\"2014-07-04T07:25:00+00:00\",\"dateModified\":\"2019-09-19T12:55:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lhotsetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Page without Template in CQ5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"name\":\"AEM Blog | Lhotse Technologies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\",\"name\":\"AEM Blog | Lhotse Technologies\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"contentUrl\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"width\":539,\"height\":172,\"caption\":\"AEM Blog | Lhotse Technologies\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d\",\"name\":\"Team Lhotse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Team Lhotse\"},\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Page without Template in CQ5 - AEM Blog | Lhotse Technologies","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/","og_locale":"en_US","og_type":"article","og_title":"Page without Template in CQ5 - AEM Blog | Lhotse Technologies","og_description":"During CQ5 interviews, a general question has been asked &#8211; Can we create a page without template? in this post [&hellip;]","og_url":"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/","og_site_name":"AEM Blog | Lhotse Technologies","article_published_time":"2014-07-04T07:25:00+00:00","article_modified_time":"2019-09-19T12:55:39+00:00","author":"Team Lhotse","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Team Lhotse","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/#article","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/"},"author":{"name":"Team Lhotse","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d"},"headline":"Page without Template in CQ5","datePublished":"2014-07-04T07:25:00+00:00","dateModified":"2019-09-19T12:55:39+00:00","mainEntityOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/"},"wordCount":390,"commentCount":0,"publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"articleSection":["AEM","CQ","CQ5","Page without template in cq5","Templates"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/","url":"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/","name":"Page without Template in CQ5 - AEM Blog | Lhotse Technologies","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#website"},"datePublished":"2014-07-04T07:25:00+00:00","dateModified":"2019-09-19T12:55:39+00:00","breadcrumb":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/lhotsetechnologies.com\/blog\/page-without-template-in-cq5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lhotsetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Page without Template in CQ5"}]},{"@type":"WebSite","@id":"https:\/\/lhotsetechnologies.com\/blog\/#website","url":"https:\/\/lhotsetechnologies.com\/blog\/","name":"AEM Blog | Lhotse Technologies","description":"","publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization","name":"AEM Blog | Lhotse Technologies","url":"https:\/\/lhotsetechnologies.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","contentUrl":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","width":539,"height":172,"caption":"AEM Blog | Lhotse Technologies"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d","name":"Team Lhotse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Team Lhotse"},"url":"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/"}]}},"_links":{"self":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=39"}],"version-history":[{"count":1,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/39\/revisions"}],"predecessor-version":[{"id":190,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/39\/revisions\/190"}],"wp:attachment":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}