To get UnPublished Contents

Hi Everyone,

I’m new to umbraco.
Here I have created a blog with 4 events here I have unpublished 2 of the events now in my website I can able to see the remaining two published events.

Now I want to display the unpublished events in a separate page so that, I have modified the query like

From

@{
    .Where(x => x.IsVisible());
}

To

@{
    .Where(x => x.InVisible());
}

I don’t know whether it’s correct or not???

What I want to do to get the unpublished event (i.e., UnPublished contents from backoffice)???

-Regards,
Jothipriya G


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/108299-to-get-unpublished-contents