Expand my Community achievements bar.

SOLVED

Editable Templates Inheritance

Avatar

Level 1

  Hello everyone. I have a question about editable templates and something its not clear.

Lets say i have to put a logo on every page.

I'm using Editable Templates.

So i have like 1 template-type and 10 templates from it.

I understand i can put the logo on the template-type and then create templates. Everything is fine. Logos are everywhere but i actually can't modify it.

If i want to change the logo in the parent template-type. It wont be possible because it will change only if i create a new template. This because changes are not reflected.

At this point. How can achieve an inheritance system with editable template? Iparsys is not an option and its not the best practice.

How should i do this?

In case the client has lets say 40 templates, i think its not reasonable change logo in every template, but change it on a parent and then inherit modification through all the others.

Another point is. If i need some policy restricting allowed components, they are template based.

What if i need some different policies on pages with same template?

The only solution i see its to create many template and policies as my pages.

Thank you

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Unlike other CMS systems - AEM Editable Templates do not support inheritance.

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

Unlike other CMS systems - AEM Editable Templates do not support inheritance.

Avatar

Level 2

We had a similar issue and we have implemented editable templates successfully along with inheritance.

 

How:

  1. Create base page component all the template types you need.
  2. Create number of templates you need.
  3. Under created template add iparsys node (in our case header and footer) with resource type wcm/foundation/components/iparsys
  4. And then utilize the iparsys instead of initial content for configuration of base components like header and footer.

    amoghd60518652_0-1581115686447.png

Thanks,
Amogh

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----