mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
d1d9452757
Removed BlogTreeExtension in favour of the new WidgetPageExtension in the "widgets module". Use the following code to update: Object::add_extension('BlogTree', 'WidgetPageExtension'); Object::add_extension('BlogEntry', 'WidgetPageExtension'); The template placeholder has been renamed from $SideBar to $SideBarView. In case you're overriding blog templates, please adjust accordingly. This change means that widgets can theoretically be applied to individual blog entries as well, since they need the "SideBar" relationship as well. In practice, this defaults to "InheritSideBar" though, which pulls them from the BlogHolder as usual.
5 lines
95 B
Scheme
5 lines
95 B
Scheme
<% if SideBarView %>
|
|
<div id="Sidebar" class="typography">
|
|
$SideBarView
|
|
</div>
|
|
<% end_if %> |