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
In umbraco 7 to get a list of announcements I would use
var announcements = Umbraco.TypedContentSingleAtXPath("//announcementList");
@foreach (var announcement in announcements.Children.Where(x => x.IsVisible() && Umbraco.MemberHasAccess(x.Path)).OrderByDescending(x => x.CreateDate))
in umbraco 8 I do not have Umbraco.Web.MVc.UmbracoTemplatePage. what do I use
In v8, their is no @announcement.GetPropertyValue("title")
Instead you can use @announcement.Value("title")
This is good article on how to access v8 iPublishedContent.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted