This website requires JavaScript.
Explore
Help
Register
Sign In
tonyair
/
silverstripe-blog
Watch
1
Star
0
Fork
0
You've already forked silverstripe-blog
mirror of
https://github.com/silverstripe/silverstripe-blog
synced
2024-10-22 11:05:58 +02:00
Code
Issues
Projects
Releases
Wiki
Activity
91705ccc7d
silverstripe-blog
/
templates
/
Includes
/
BlogSideBar.ss
5 lines
95 B
Scheme
Raw
Normal View
History
Unescape
Escape
API Moved "SideBar" widget relation to "widgets" module 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.
2013-04-16 15:28:45 +02:00
<%
if
SideBarView
%>
<div
id=
"Sidebar"
class=
"typography"
>
$SideBarView
</div>
<%
end_if
%>
Reference in New Issue
Copy Permalink