content re usability in child pages | Adobe Higher Education
Skip to main content
Level 2
November 21, 2017
해결됨

content re usability in child pages

  • November 21, 2017
  • 2 답변들
  • 1743 조회

hi,

i have created header footer components using html and java.

how should i inherit all content to child pages from parent page.

i have added components in templates so that it will be visible in all pages, but content is not getting copied in sub pages.

kindly help for the same.

entire content is coming from java slightly based so i can not use inherited page properties.

이 주제는 답변이 닫혔습니다.
최고의 답변: kautuk_sahni

Way of doing this is:

1. Use Experience Fragments to create the header and footer and include those as initial content on your template types. That ways the authors can edit the XFs and the change will get reflected everywhere. You’ll have to figure out a caching strategy to make sure all the appropriate flush happens.

2. Best practice to add common header is :- Getting Started with AEM Sites Part 5 - Navigation

2 답변

kautuk_sahni
Community Manager
Community Manager
November 21, 2017

Way of doing this is:

1. Use Experience Fragments to create the header and footer and include those as initial content on your template types. That ways the authors can edit the XFs and the change will get reflected everywhere. You’ll have to figure out a caching strategy to make sure all the appropriate flush happens.

2. Best practice to add common header is :- Getting Started with AEM Sites Part 5 - Navigation

Kautuk Sahni
edubey
Level 10
November 21, 2017

Apart from what is already mentioned by kautuksahni ,

1. You can use -Apache httpd Tutorial: Introduction to Server Side Includes - Apache HTTP Server Version 2.4 - One good way but setup might take time. Can be cached and flushed on specific changes, not all pages

2. Iparsys component in aem which would inherit node of parent page.- Once you make any changes to header/footer you need to flush entire child hierarchy to reflect changes in child pages

3. Reference component - same at 2