I can't find a solution for this, I hope someone can point me to the right direction. Basically I have a website with latest 3 blog posts in home page.
I use something like this
foreach (var post in Umbraco.TypedContent(1234).Children.Where(o => o.IsDraft == false).OrderByDescending(o => o.UpdateDate).Take(3)){ ... }
but it also shows scheduled, unpublished, items. In the backoffice the scheduled items are "unpublished" and I correctly see them grayed out.
I can't find any way to get the item status (published, unpublished or scheduled) or the release date.
Umbraco.TypedContent should return only published nodes, so maybe something with publish status in admin ?
Did you do republish ?
What version of Umbraco ?
Blog posts by publish date
I can't find a solution for this, I hope someone can point me to the right direction. Basically I have a website with latest 3 blog posts in home page. I use something like this
but it also shows scheduled, unpublished, items. In the backoffice the scheduled items are "unpublished" and I correctly see them grayed out.
I can't find any way to get the item status (published, unpublished or scheduled) or the release date.
Hope you can help, Joe
Hi Joe,
Umbraco.TypedContent should return only published nodes, so maybe something with publish status in admin ? Did you do republish ? What version of Umbraco ?
Thanks
is working on a reply...