@homepage.Children is a list of IPublishedContent and contains published items. Umbraco handles everything with published/unpublished items server side so that you don't have to think about that in you views.
Im sorry to hear that Jonathan! You should'nt have to do that. Maybe you should report this issue along with the version number to http://issues.umbraco.org?
Page Publish Date
hi, I am displaying pages in a list but I want to make sure that the page is Published.
I do not want to show a page that has an Unpublish date less than today.
I do not want to show a page that has a Publish date greater than today.
I do not want to show a page that has not been published.
Thanks
Jon
Hi Jonathan.
@homepage.Children is a list of IPublishedContent and contains published items. Umbraco handles everything with published/unpublished items server side so that you don't have to think about that in you views.
Great right? :)
Here is some more info about IPublishedContent and querying:
https://our.umbraco.org/documentation/reference/querying/IPublishedContent/
https://our.umbraco.org/documentation/reference/querying/
Hi, this is my code:
And it still shows an event that has an UnPublish Date less than today.
That sounds strange and should'nt be possible. :/ Wierd.
Try setting a new unpublished date for the event and save. Remember to click save, and not 'Save and publish'.
Hi again Jonathan.
Did this work out for you or are you still having trouble with this?
Hi, it didnt work so I put my own checks around the articles. For example:
* MARK UP IN HERE }
Im sorry to hear that Jonathan! You should'nt have to do that. Maybe you should report this issue along with the version number to http://issues.umbraco.org?
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.