Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

"Suggested Layouts" vs. Templates

Avatar

Level 3

I was wondering if this concept every came up before. In our application, we would like to have as few templates as possible (potentially, even 1 or 2). However, we would like to create the concept of "suggested layouts" (think variations of a content fragment) which would essentially be one template, but with multiple 'Initial Content' layouts, so a content producer could choose a layout and have it prefilled with a set of components similar to how they intend to author the page.

Can this be done without having to create a template for each one of the 'Layouts" or do we simply have the templates just as frameworks for the Initial Content?

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Gaurav is correct - this functionality is not available OOTB. When an author creates a page, they must select a template - which should be an editable template. Template authors have the ability to create template with policies, fixed components, layout container (which container author able components), to meet the business's requirements.

To sum up -  you need to create a separate editable template (each one can container different layout container and policies) that a page can be based on.

View solution in original post

7 Replies

Avatar

Level 10

Would style system work for your use case? You'd obviously need to tweak things around to an extent.

check -

Style System

Adobe Experience Manager Help | Understanding how to code for the AEM Style System

Avatar

Level 3

It's more an aspect on page creation. When an author goes to create a new page, they're presented with different options of Initial Content to choose from.

Avatar

Level 10

To me, that would fall under the bucket of custom solution to design authoring experience/journey including various constraints. I'm not able to think of any OOB available solution at the moment.

Let's wait to hear from other folks.

Avatar

Level 10

What type of templates are you using? Are you using editable templates. That is the best solution to create a multi page AEM web site.

Avatar

Level 3

Yes, we are using editable templates derived from the AEM v2 core page component. I'll try and give the scenario step by step:

  1. Content producer chooses "Create > Page"
  2. They are presented with the different "Layout" options to choose from
    1. Would these just be different templates that contain unique "Initial Content?"
    2. They would all then need to have a superType of the application base page component?
  3. The resulting page would be of the base page template, containing the Initial Content of the layout they chose

Avatar

Correct answer by
Level 10

Gaurav is correct - this functionality is not available OOTB. When an author creates a page, they must select a template - which should be an editable template. Template authors have the ability to create template with policies, fixed components, layout container (which container author able components), to meet the business's requirements.

To sum up -  you need to create a separate editable template (each one can container different layout container and policies) that a page can be based on.

Avatar

Level 3

Thanks guys, so it seems like the approach I would need to take to create something like this would be my 2.a. bullet point:

"Would these just be different templates that contain unique "Initial Content?"

Thanks for the responses guys!