Can I leave system-region default empty?

jeff.lin's Avatar

jeff.lin

13 Jul, 2016 04:35 PM

Hello, I am new to this, and from what I read at the Knowledge Center is that <system-region name="default" /> is required on all pages. On a previous project, I have used the default region to hold the content for the page, and it works fine since the layout is pretty straightforward. However, I am wondering if I can declare a default region in the template and leave it empty, and then declare another region (ie, system-region name="main content" />?

In other word, here is what I am hoping to achieve... Thank you.

<body>
<system-region name="default" />
<system-region name="featured banner" />
<section class="left-column">
     <system-region name="main content" />
</section>
<section class="middle-column">
     <system-region name="middle content" />
</section>
<section class="right-column">
     <system-region name="other content" />
</section>
</body>

  1. 1 Posted by Ryan Griffith on 13 Jul, 2016 06:58 PM

    Ryan Griffith's Avatar

    Hi Jeff,

    By default, the DEFAULT region will be supplied the XML of the current page's structured data, so I suspect unless you apply a Format that simply outputs no visible content, you will see some XML dumped to the region.

    Curious, is there a reason not to use DEFAULT instead of main content? They are essentially the same thing.

    Please let me know if you have any questions.

    Thanks!

  2. 2 Posted by jeff.lin on 13 Jul, 2016 07:30 PM

    jeff.lin's Avatar

    Thank you Ryan, that answered my question. So, by default, the default-region will generate something unless I explicitly format it otherwise. I was just curious about the nature of default-region versus my own user-created-regions. Originally I had plans to define my own main content region, because then we can keep the naming consistent with other regions, and hopefully make sense down the road for other new users on our team. –Jeff

  3. 3 Posted by Ryan Griffith on 13 Jul, 2016 07:36 PM

    Ryan Griffith's Avatar

    Makes sense, Jeff.

    The DEFAULT region is definitely unique, mainly to handle Content Types that do not have Data Definitions applied to them. In those cases, the region will be the contents of the WYSIWYG that is presented to the user (we call this the "default WYSIWYG"). If a Data Definition is applied and there is no Index Block assigned, the region is given the page's structured data.

    I'm going to go ahead and close this discussion, please feel free to comment or reply to re-open if you have any additional questions.

    Have a great day!

  4. Ryan Griffith closed this discussion on 13 Jul, 2016 07:36 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

 

26 Aug, 2016 01:19 PM
25 Aug, 2016 03:02 PM
25 Aug, 2016 12:50 PM
24 Aug, 2016 08:43 PM
24 Aug, 2016 07:20 PM
21 Aug, 2016 01:20 PM