Skip to content

Commit

Permalink
FIX Adjust ElementalArea check to allow nesting of regular Pages
Browse files Browse the repository at this point in the history
When nesting a regular Page underneath a BlockPage, this theme currently
breaks, looking for an ElementalArea method on the controller. By
shifting to a check against ElementalAreaID, the Page can render
successfully.
  • Loading branch information
Garion Herman committed Aug 24, 2020
1 parent d8f705e commit 3e252b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/Layout/Page.ss
Expand Up @@ -9,7 +9,7 @@
</div>
<div class="row">
<section class="col-lg-8<% if not $Children %> offset-lg-2<% end_if %>">
<% if $ElementalArea %>
<% if $ElementalAreaID %>
<%-- Support for content blocks, if enabled --%>
<% if $ElementalArea.RichLinks %>
$ElementalArea.RichLinks %>
Expand Down

0 comments on commit 3e252b9

Please sign in to comment.