Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am looking to be able to display the lastest post in the footer, sitewide. The site structure is as follows:Home- Blog Landing
Most of the existing widgets rely on the widget being on a page in a particular place, I need to break out of that.
What would you recommend?
You can either reuse or copy the existing latest posts widget.
var nodes = PostService.Instance.GetPosts(Model.Content).Take(itemLimit).ToIPublishedContent(true);
The itemLimit can be replaced with 1 if thats all you want.
I tried that, but I'd only get it on the home page and blog landing page, not on other children of the home node. In the end I went for a simple xslt solution, though it might be good to create a specialised widget for displaying the latest post (with excerpt and read more link) for use anywhere in a site.
I think this widget might be what you're looking for : uBlogsyWidgetListPostsForHome.cshtml
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted