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];
|
return $this->_cached['summary' . $wordsToDisplay];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!method_exists($obj, 'ElementalArea')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$element = ElementContent::get()->filter([
|
$element = ElementContent::get()->filter([
|
||||||
'ParentID' => $obj->ElementalArea()->ID,
|
'ParentID' => $obj->ElementalArea()->ID,
|
||||||
'HTML:not' => [null],
|
'HTML:not' => [null],
|
||||||
|
@ -16,8 +16,8 @@
|
|||||||
<% include Header %>
|
<% include Header %>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div id="MainContent" class="page-content" data-ajax-region="LayoutAjax">
|
<div id="MainContent" class="page-content" data-ajax-region="LayoutAjax"<% if $isLegacy %> data-legacy="true"<% end_if %>>
|
||||||
<% if $isFormResponse %>
|
<% if $isFormResponse || $isLegacy %>
|
||||||
<%-- Legacy code compatibility --%>
|
<%-- Legacy code compatibility --%>
|
||||||
<% include MainContent Layout=$Layout %>
|
<% include MainContent Layout=$Layout %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
Loading…
Reference in New Issue
Block a user