Creation of Template Types for Editable templates

In this post, we will create templates types which is the base for creating editable templates. Before getting to the subject directly, have added an introduction about templates in general.

Template is the base for creating pages. Starting AEM 6.2, we have categorisation for templates - Static and Editable templates.

Static templates : 
  • This has been available for several versions of AEM/CQ
  • Created using "Create Template" option with base page component as resourceType (which is responsible for rendering the page structure). 
    • Template (base page component as resourceType) -> Page
  • This cannot be edited as such. Since it just holds a reference to base page component, any changes to the page (other than authorable components), would need a change in base page component which is ultimately a work of developer. (calls for a code change)
  • Allowed components are configured using Design mode (list being saved to etc/designs/projectfolder/templatename/jcr:content)
Editable templates:
  • Introduced in AEM 6.2
  • Templates types is the base for creating Editable templates which is then used to create a page.
    • Template Types(reference to base page component) -> Editable Templates -> Page
  • New role named "template-authors" has been introduced, responsible for creating and editing editable templates, while creating template types is a role of a developer.
  • Allowed components are defined using policies. Hence "Design mode" will not be available for pages created using Editable templates.
Template-Types:
  • We can define resourceType of page component
  • Components that are allowed in the template editor (Editable templates)
  • Setting up mobile emulator/breakpoints for responsivegrid (This can also be defined at Page level as well - Root page of the site)
Creating Template-Types:
Project specific placeholder/folder:
  • Templates-types, editable templates and policies associated to it resides under /conf folder
  • OOB template-types resides in /libs/settings/wcm/templates-types (HTML5 page and Adaptive form)
  • Project specific template-types resides in /conf/projectspecificname/settings/wcm/template-types
  • The same can be created using Configuration Browser.
    • Tools -> General -> Configuration Browser ->  Click on Create ->  In "Create Configuration" dialog ->  Title: any name matching your project, Tick "Editable Templates" checkbox -> Click on Create -> project specific placeholder for template-types, editable templates/policies would be successfully created. -> as evident from CRXDE in the path "/conf/projectspecificname/settings/wcm"
    • Screenshots related to this is added under Screenshots A.
  • Till this step, we are done with creation of project specific placeholder holding template-types, editable templates and policies related to it.
Project specific Template-types:
  • Template-types has the following structure  (all the below highlighted in grey-nodes/green-properties is to be created manually under /conf/projectspecificname/settings/wcm/template-types)
  • custom-template-type (cq:Template)
    • jcr:content (cq:PageContent) (jcr:title and jcr:description for template type to added here as properties)
    • initial (cq:Page)
      • jcr:content (cq:PageContent) (sling:resourceType -> base page component path as property)
    • structure (cq:Page)
      • jcr:content (cq:PageContent)  (sling:resourceType -> base page component path as property)
    • policies (cq:Page)
      • jcr:content (nt:unstructured) (sling:resourceType -> wcm/core/components/policies/mappings)
        • root (nt:unstructured) (sling:resourceType -> wcm/core/components/policies/mapping)
  • initial and structure will hold reference to base page component(project specific page component)
  • explanation on what policies is not covered in this post, it will be on separate post for better clarity.
  • Note: With above highlighted in grey and green, we are done with template-types creation (holding reference to your project base page component) which is good to create editable templates out of it.
  • Additionally, we can do two things,
    • if you would like to set the mobile emulator at template level, we can define the same under structure node of custom-template-type
    • If you would like to configure a parsys or responsivegrid(Layout Container component) we can do the same under structure of cutom-template-type as highlighted below (again to be created manually)
    • Screenshot of structure node from CRXDE added under Screenshots B
    • custom-template-type
      • structure
        • jcr:content (cq:deviceGroups -> /etc/mobile/groups/responsive along with sling:resourceType added above)
          • root (nt:unstructured) (sling:resourceType -> wcm/foundation/components/parsys or responsivegrid)
          • cq:responsive (nt:unstructured)
            • breakpoints (nt:unstructured)
              • phone (nt:unstructured) (title -> suitabletitle, width(Long) ->650)
              • tablet (nt:unstructured) (title -> suitabletitle, width(Long) ->1200)
  • For easy understanding, have added points in par with static templates. (Templates generally of type cq:Template and its jcr:content is of type cq:PageContent which is same for both template-types and static template. But how it holds the reference to page component and design properties is what differs)
  • Title and Description of Template
    templatename(cq:Template) will have jcr:title and jcr:description for the static template
    custom-template-type/jcr:content(cq:PageContent) will have jcr:title and jcr:description for the template type that we create
    Reference to page component on templatename/jcr:content(cq:PageContent) via sling:resourceType reference to page component on initial/jcr:content and structure/jcr:content via sling:resourceType
    Allowed components list configured via "Design mode" -> /etc/design/projectname/templatename/jcr:content Allowed components configured via policy option is saved in generic location. It involves policies related information which will be covered separately
Note: 
  • projectspecificname used for illustration - training, custom-template-type ( node name) used is empty-page.
  • template types have to be in the correct folder structure (settings/wcm/..) otherwise the same will not be available for use while creating Editable templates.
Screenshots for reference:
template-type named "empty-page" is created under project specific template-types path 


Screenshots A: (Creation of project specific placeholder/folder)



After click on "Create" above and success message display, if we navigate to CRXDE, below highlighted in red would be the result.



Screenshots B: (Adding mobile emulator + root node for parsys/responsivegrid)
Reference:  Adobe helpx links.

Comments

  1. Great job. If you want to know more about templates you should visit this site where there are many different categories including dentistry website templates

    ReplyDelete
  2. Excellent data with lots of information. I have bookmarked this page for my future reference. Do share more updates.
    Salesforce Training In Chennai
    Salesforce Course In Chennai
    Salesforce Training Online

    ReplyDelete
  3. The process of outsourcing the retail order fulfillment to a group of professionals is known as 3PL (third-party logistics) fulfillment. This involves order taking, picking and packing, managing inventory, shipping, and warehousing. You may spend less time processing orders and more time growing your business by outsourcing fulfillment to a 3PL.
    3pl fulfillment companies

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. Thank you for this article because it’s really informative, I love reading your article. WDP Technologies is one of the best web and mobile app development company where you can find solutions for your business problems

    ReplyDelete
    Replies
    1. Exquisite Stay and Culinary Delights: Hotels in Melur-Mugunda Grand Orappu Restaurant
      Immerse yourself in a harmonious blend of luxury and gastronomic wonders at our carefully curated selection of hotels in Melur - Mugunda Grand Orappu Restaurant. Indulge in opulent accommodations while savoring the finest culinary delights at the renowned Orappu restaurant. Discover a haven where comfort, style, and exquisite flavors converge, promising an unforgettable experience for the discerning traveler.

      Introduction:

                              Nestled amidst the serene landscapes of Melur at Mugunda Grand Orappu Restaurant, a quaint town that whispers tales of history and tranquility, lies a collection of hotels in Melur that redefine luxury and hospitality. Melur, known for its cultural richness and natural beauty, is now becoming a sought-after destination for travelers seeking a peaceful retreat. In this blog, we unravel the secrets of the enchanting hotels in Melur that promise a perfect blend of comfort, charm, and local allure.




      Immersive Comfort Amidst Nature:

      Melur's hotels are strategically located to offer a harmonious blend of comfort and proximity to nature. Surrounded by lush greenery and scenic views, these accommodations provide a retreat for those seeking respite from the hustle and bustle of city life.

      Cultural Extravaganza:

      Melur boasts a rich cultural heritage, and the hotels here are often designed to reflect this. From the architecture to the décor, guests are treated to a sensory journey through the town's history, allowing them to connect with the local traditions and customs.

      Culinary Delights:

      The gastronomic scene in Melur is as diverse as its cultural tapestry. Hotels in the area, with their in-house restaurants, serve a delectable array of local and international cuisines. Guests can savor authentic flavors while enjoying the warm hospitality that Melur is renowned for.

      Personalized Hospitality:

      One of the standout features of hotels in Melur is their commitment to personalized service. The staff goes above and beyond to ensure that every guest's needs are met, creating an atmosphere of warmth and genuine care.

      Explore Melur's Hidden Gems:

      Staying in Melur isn't just about the hotels; it's about exploring the hidden gems the town has to offer. From ancient temples to vibrant local markets, guests can immerse themselves in the unique charm of Melur, with the hotel serving as the perfect starting point for these adventures.

      Modern Amenities in a Timeless Setting:

      While Melur embraces its rich history, the hotels here seamlessly blend modern amenities with timeless elegance. Guests can enjoy state-of-the-art facilities without sacrificing the charm that makes Melur a distinct destination.

      Conclusion:

      In the heart of Melur, where history meets hospitality, the hotels offer a gateway to a world of tranquility and luxury. Whether you're a cultural enthusiast, a nature lover, or simply seeking a peaceful escape, the hotels in Melur beckon you to experience a slice of paradise where comfort and charm coalesce in perfect harmony. Book your stay and embark on a journey of discovery in this hidden gem of South India.

      Delete
  7. Thank you for this article because it’s really informative, I love reading your article.Create a better future for your business with BEP20 token development by Coin Developer India. Our expert team of blockchain developers can help you create a custom BEP20 token with advanced features such as staking, liquidity pools, and yield farming.

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. Experience the ultimate in crypto gaming with iMeta's Betfury Clone Script . Packed with casino games, sports betting, Bitcoin dividends, and more. Explore our interactive demo and elevate your gaming venture with our fully featured and affordable solution.

    ReplyDelete
  12. Southern Comfort: Exploring the Best Hotel in Nagercoil
    Discover a haven of tranquility in the Hotel in Nagarcoil - Hotel Vijayetha, where unparalleled hospitality meets modern elegance. Indulge in a refined stay, surrounded by the cultural richness of the region. From well-appointed rooms to exquisite dining experiences, Hotel Vijayetha offers a sanctuary for discerning travelers seeking comfort, convenience, and a touch of Southern charm.

    Introduction:




                        Nagercoil, a picturesque town in the southernmost tip of India,Hotel in Nagarcoil-Hotel Vijayetha is a hidden gem that beckons travelers with its cultural richness and natural beauty. As you embark on a journey to this enchanting destination, let's delve into the world of hotels in Nagercoil, where hospitality meets tradition, and comfort embraces the soul.

    Nagercoil's Unique Appeal:

    Nagercoil is not just a destination; it's an experience. Known for its vibrant temples, lush landscapes, and cultural heritage, the town sets the stage for an unforgettable sojourn. The hotels in Nagercoil are strategically placed to provide guests with easy access to the town's attractions while offering a serene escape from the bustling world.

    A Tapestry of Hospitality:

    One of the defining features of hotels in Nagercoil is the warm hospitality that guests receive. From family-run establishments to luxury accommodations, each hotel takes pride in offering personalized service that reflects the inherent warmth of the region.

    Diverse Accommodation Options:

    Nagercoil caters to a range of travelers, and its hotels reflect this diversity. Whether you seek a boutique hotel with a unique character or a modern luxury stay with all the amenities, Nagercoil has something to offer for every taste and preference.

    Culinary Delights of the South:

    Southern India is renowned for its culinary treasures, and Nagercoil is no exception. Hotels in the area often boast in-house restaurants serving authentic South Indian cuisine, allowing guests to embark on a flavorful journey through the local gastronomic landscape.

    Proximity to Nature's Wonders:

    Nagercoil's proximity to the Western Ghats and the Indian Ocean offers guests a chance to explore nature's wonders. Many hotels in the area are strategically located to provide breathtaking views of the lush greenery and serene waters, creating a perfect backdrop for a relaxing retreat.

    Blend of Tradition and Modernity:

    Nagercoil seamlessly blends tradition with modernity, and its hotels are no exception. While embracing the town's cultural roots, these accommodations offer contemporary amenities, ensuring a comfortable and convenient stay for every guest.

    Conclusion:

    In the heart of Nagercoil, where culture dances with nature, the hotels stand as gateways to an enriching experience. Whether you're drawn to the town's vibrant festivals, historical sites, or simply the tranquility of its landscapes, Nagercoil's hotels welcome you with open arms. Embark on a journey of discovery, and let the hotels in Nagercoil be your comforting abode in this charming corner of Southern India.

    ReplyDelete
  13. Discover the excitement of online crypto casino gaming on BC.game's thriving platform. Explore iMeta Technologis bespoke Bc Game Clone Script, an exact replica with tailored solutions for your preferences. With interoperability for diverse events and support for multiple cryptocurrencies, our clone script ensures a seamless and personalized gaming experience.

    ReplyDelete
  14. Explore iMeta's cutting-edge, Axie Infinity Clone Script a groundbreaking software solution that mirrors the enchanting universe of Axie Infinity. Our white-label option, adaptable to your business logic, empowers you to dive into the thrilling realm of play-to-earn blockchain-based gaming. Revolutionize your venture and captivate players with a unique and customizable gaming experience.

    ReplyDelete
  15. Coin Development Company Unlocking Success: Understanding the Coin Development company
    Embarking on a successful future involves grasping the intricacies of Coin Development. Discover the key steps and insights with our streamlined guide. Dive into the world of Coin Development to pave your way to success.

    ReplyDelete
  16. Description: Elevate your stay near Melur with the convenience and comfort of hotel room booking near Melur  at Mugunda Grand Orappu Restaurant. Nestled in the heart of Melur, our establishment offers a seamless blend of modern luxury and warm hospitality, ensuring a memorable experience for every traveler.

    Discover a range of thoughtfully designed rooms, each providing a tranquil haven for relaxation after a day of exploration. From cozy single rooms to spacious suites, our accommodations cater to diverse preferences, promising a restful retreat for both business and leisure travelers.

    Embark on a culinary journey at Mugunda Grand Orappu Restaurant, where our on-site restaurant serves up delectable flavors and local specialties. With the central location of our hotel, you'll find easy access to Melur's attractions, making it a perfect base for your travels.

    Hotel room booking near Melur at Mugunda Grand Orappu Restaurant ensures personalized service and attention to detail. Immerse yourself in the charm of the surroundings, experience the warmth of our attentive staff, and enjoy the convenience of modern amenities.

    Whether you're in Melur for business or leisure, make your stay seamless and memorable with hotel room booking at Mugunda Grand Orappu Restaurant. Embrace comfort, culinary delights, and warm hospitality, creating a home away from home in the heart of Melur.

    ReplyDelete
  17. Discover the excellence of hotel vijayetha at Hotel Vijayetha, a premier accommodation in Nagercoil, Tamil Nadu. Strategically situated in the heart of Nagercoil, our hotel is conveniently positioned to provide easy access to the Southern-Most point of the Indian coastline - the renowned Kanyakumari. Our guest rooms boast the luxurious amenities and ambiance characteristic of a 4-star hotel, complemented by personalized service and diverse culinary experiences at our multi-cuisine restaurants, ensuring a delightful stay tailored to meet all your needs.

    ReplyDelete
  18. Description: Elevate your Melur experience with the perfect blend of comfort and gastronomic delights. Unlock a seamless stay with hotel room booking near melur   at Orappu Restaurant, situated in the heart of Melur. Immerse yourself in the warmth of hospitality and the tantalizing flavors that define the culinary charm of this vibrant town.

    Our thoughtfully designed rooms offer a tranquil retreat after a day of exploration. Whether you're traveling for business or leisure, the accommodations near Orappu Restaurant cater to diverse preferences, ensuring a restful sanctuary for every guest.

    Embark on a culinary journey at Orappu Restaurant, where local specialties and international delights come together to create an unforgettable dining experience. With our central location, you're just moments away from savoring the vibrant flavors that define Melur's culinary heritage.

    Hotel room booking near Orappu Restaurant ensures personalized service and attention to detail. Our dedicated staff is committed to making your stay memorable, providing warm hospitality and ensuring every aspect of your visit is tailored to meet your unique needs.

    Book your stay and seamlessly blend comfort with culinary delights as you explore Melur's charm. Hotel room booking near Orappu Restaurant invites you to a world where every moment is a harmonious symphony of comfort and flavors.

    ReplyDelete
  19. Description: Plan your next getaway or business trip with ease as you embark on a journey of comfort and convenience. Experience the epitome of hospitality with our hotel room booking near Melur , offering a tranquil retreat amidst the charm of this vibrant town.

    🛌 Thoughtfully Designed Accommodations: Secure your stay in thoughtfully designed rooms that balance modern aesthetics with comfort. Whether you're a solo traveler, a couple on a romantic escape, or a family seeking adventure, our accommodations cater to diverse preferences, promising a restful haven near Melur.

    🌟 Convenience at Your Fingertips: Enjoy a seamless booking experience, allowing you to effortlessly secure your room online. Our user-friendly reservation process ensures that your journey to Melur is marked by convenience, making every step from booking to check-in a breeze.

    🗺️ Explore Melur's Charm: Strategically located, our hotel near Melur provides easy access to the town's attractions, ensuring you can explore the local culture, cuisine, and landmarks with unparalleled convenience. Immerse yourself in the richness of Melur's heritage from the comfort of your chosen accommodation.

    👨‍💼 Business or Leisure, Your Choice: Whether you're visiting for business engagements or seeking a leisurely escape, our hotel near Melur caters to both worlds. Unwind in comfort after a day of meetings or use our location as a base to explore the wonders that Melur has to offer.

    🌅 Personalized Service, Memorable Stay: At our hotel near Melur, we believe in going beyond providing a place to stay; we create an experience. Our dedicated staff is committed to ensuring your stay is memorable, offering personalized service to meet your unique needs and preferences.

    🌈 Book Your Stay Today: Elevate your Melur experience with a seamless hotel room booking near Melur. Discover comfort, convenience, and warm hospitality at every turn, ensuring your stay is nothing short of exceptional. Your journey begins here! 🌟🏨

    ReplyDelete
  20. good
    Crop Bytes Clone Script Development

    ReplyDelete

Post a Comment

Popular posts from this blog

Embedding Third party dependency/OSGi bundle in AEM application hosted in AEMasCS

OSGI Factory Configuration implementation

Embed Third party dependency using bnd-maven-plugin