Best way to design header and footer in editable template? | Community
Skip to main content
Anderson_Hamer
Level 4
June 21, 2021
Solved

Best way to design header and footer in editable template?

  • June 21, 2021
  • 5 replies
  • 5746 views

 

I want to design a header and footer for an editable template,

Option 1 – Place whatever component is required for  header and footer in Initial content of editable template so that I will page created with this template will have the header and footer

Option 2 – Place header and footer components in experience fragment and use it in Initial content.

 

Which option is most recommended one in editable template ?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Bhuwan_B

@anderson_hamer Please refer to below article, which talks about three different ways of implementing Header and Footer.

http://www.sgaemsolutions.com/2019/10/implementing-header-and-footer-with.html

 

5 replies

ibishika
Level 4
June 21, 2021

In most cases it's ideal to place header and footer in the template structure instead of initial content of the template as header and footer are present through out the site and the content is same in all pages.

Again, whether you keep it in structure/initial content, it's ideal to keep header and footer as experience fragments and then include the experience fragment into the template.

If you are keeping header footer in structure, you must keep them as experience fragments if you are planning to have language copies in your site.

BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
June 22, 2021

Option 2 – Place header and footer components in experience fragment and use it in Initial content.

A recent implementation I've done is place the experience fragment into the editable template as a locked component. 

Shubham_borole
Community Advisor
Community Advisor
June 22, 2021

I understand neither is a permanent option. 

 

Traditional implementation will be usually header and footer components included in header and footer via base page editable template. But not as initial content,  that might not be ideal. Straight forward to follow.

 

Using XF can provide an advantage of using header/footer variations if any in different site templates

 

 

 

 

 

 

Bhuwan_B
Community Advisor
Bhuwan_BCommunity AdvisorAccepted solution
Community Advisor
June 22, 2021

@anderson_hamer Please refer to below article, which talks about three different ways of implementing Header and Footer.

http://www.sgaemsolutions.com/2019/10/implementing-header-and-footer-with.html

 

Level 2
June 22, 2021

In editable templates, best way would be using experience fragments