"Suggested Layouts" vs. Templates

Avatar

Avatar

robinsonm

Avatar

robinsonm

robinsonm

06-03-2019

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!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

06-03-2019

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.

Answers (6)

Answers (6)

Avatar

Avatar

robinsonm

Avatar

robinsonm

robinsonm

07-03-2019

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!

Avatar

Avatar

robinsonm

Avatar

robinsonm

robinsonm

06-03-2019

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

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

06-03-2019

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

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

06-03-2019

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

Avatar

robinsonm

Avatar

robinsonm

robinsonm

06-03-2019

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

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
Gaurav-Behl
MVP

06-03-2019

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