[Template] Do not display the header and footer on the published page

Keywords:missing header and footer

Page headers and footers are typically handled using the template tag `<@cms_include>Reference: By default, the SSI method is used. It is necessary to configure SSI support in related middleware components such as nginx.

Solution:

  • Adding SSI configuration support for Nginx
location / {
    ssi on; # Enable SSI
    ssi_silent_errors on; # SSI error handling
    ssi_types text/shtml; # SSI file type
    root /home/admin/docker/chestnut-admin/wwwroot_release/swikoon_pc;
    index index.shtml index.html index.htm;
}
  • <@cms_include>Thetaghas been configured with thessiattribute set tofalse`. After this change, it is necessary to publish the changes across the entire site in order for them to take effect on all pages.

On this page