/etc/design approach - reading from 2 different /etc/design node on same page | Community
Skip to main content
Level 4
October 16, 2015
Solved

/etc/design approach - reading from 2 different /etc/design node on same page

  • October 16, 2015
  • 2 replies
  • 1069 views

Hi all,

 
We have a requirement for universal header and footer. 
 
We have 10 sites. All of these 10 sites will be using same header and footer to make sure all  of them gets same branding experience. One section of header (top part) remains common to all sites and 2nd section of header (lower part) changes from site to site (site1 , site2 , site3....)
 
So for header section we have 2 component:
1. Global Header Component  
- This contains content which is common to all the sites
This stores at /etc/design/global-header
 
2. Site Specific Header Component 
- This contains content which is specific to that site
This stores at :
/etc/design/site1-header
/etc/design/site2-header
/etc/design/site3-header
/etc/design/site4-header
 
What is the best appraoch for handle this situation. I want to use /etc/design so that we do not need to author header for each page. In page property I can assign only one design path (/etc/design/site1-header) so how do i make sure that i include both of the design paths on same page:
/etc/design/global-header
/etc/design/site1-header
 
One way to solve this is to include one design path using page property and second design path include in JSP template using <c:import url="/etc/designs/global-header/jcr:content/global.html"/>
 
All I am trying to do is reduce any duplicate authoring or mainataining common content at more than 2 places.
 
I think this is a classic problem and someone of you must have encountered this scenario.
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015
Adobe Employee
October 16, 2015

We've seen that you asked for information on another channel and got quite a few answers. We hope that helped, feel free to use the forums again if you have any other questions.