Quantcast
Channel: Squarespace Answers - latest questions
Viewing all articles
Browse latest Browse all 21023

What is the syntax of the template.conf to include multiple region files in my template?

$
0
0

Please forgive me in advance if I'm missing this. I'd like to see an example of how to include a region in another file.

The dev page http://developers.squarespace.com/layouts-regions/ lists a sample site.region file for the "Single Layout Sites" but not one for the "Mulitple Layout Sites".

For example if I have the following in my template.conf file:

"default" : {
    "name" : "Sidebar",
    "regions" : [ "my-header","my-sidebar", "main_body", "my-footer" ]
  },

How then do I include "header", "sidebar", and "footer" in my "main_body.region" file? (Or what does the main_body.region file look like?

i.e., main_body.region:

<html>
  <head>
    [[ INSERT MY-HEADER HERE ]]
  </head>
  <body id="{squarespace.page-id}" class="{squarespace.page-classes}">
      <!-- Sidebar -->
      [[ INSERT MY-SIDEBAR HERE ]]

    ... REST OF CODE
[[ INSERT MY-FOOTER HERE ]]

Thanks tremendously.


Viewing all articles
Browse latest Browse all 21023

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>