Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

rohitspathak123
Level 4
Level 4

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.
1 Accepted Solution
Sham_HC
Correct answer by
Level 10
Level 10
0 Replies
Sham_HC
Correct answer by
Level 10
Level 10
aheim02
Employee
Employee

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.