I am wanting to including the lastest blog posts widget in my includes/footer.ss to display the lastest blogs posts there.
But for the life of me I can't get it to work.
Latest posts display in my sidebar on all my pages. Yey. Did something right.
But I only just want to display the latest blog posts widget in footer, not all the sidebar widgets.
Have tried $LatestPosts etc etc - to no avail.
Silverstripe version 3.1.5
I read the widget github page: https://github.com/silverstripe/silverstripe-widgets
But the Rendering a widget individually puts my site in error once I put $SilverStripeFeed in my footer.ss
I am not sure if that page is current or not as :
s directed in the definition of SilverStripeFeed(), the Widget will be rendered through the WidgetHolder template. This is pre-defined at framework/templates/WidgetHolder.ss and simply consists of:
You can override the WidgetHolder.ss and Widget.ss templates in your theme too by adding WidgetHolder and Widget templates to themes/myThemeName/templates/Includes/
I had to put those files in templates includes from widget - but still did not work :(
I very eagerly hope there is a very easy fix to my problem.