mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
FIX: Summary, add legacy support for Page.ss
This commit is contained in:
parent
efa97aaaf3
commit
33768fc844
@ -103,6 +103,10 @@ class SiteTreeExtension extends DataExtension
|
||||
return $this->_cached['summary' . $wordsToDisplay];
|
||||
}
|
||||
|
||||
if(!method_exists($obj, 'ElementalArea')) {
|
||||
return;
|
||||
}
|
||||
|
||||
$element = ElementContent::get()->filter([
|
||||
'ParentID' => $obj->ElementalArea()->ID,
|
||||
'HTML:not' => [null],
|
||||
|
@ -16,8 +16,8 @@
|
||||
<% include Header %>
|
||||
</header>
|
||||
|
||||
<div id="MainContent" class="page-content" data-ajax-region="LayoutAjax">
|
||||
<% if $isFormResponse %>
|
||||
<div id="MainContent" class="page-content" data-ajax-region="LayoutAjax"<% if $isLegacy %> data-legacy="true"<% end_if %>>
|
||||
<% if $isFormResponse || $isLegacy %>
|
||||
<%-- Legacy code compatibility --%>
|
||||
<% include MainContent Layout=$Layout %>
|
||||
<% end_if %>
|
||||
|
Loading…
Reference in New Issue
Block a user