I want to create a view that lists titles of published and unpublished nodes.

How can I make the view include unpublished nodes?
How can I style the node titles of unpublished nodes as plain text whereas the node titles of the published nodes are links to the node?

If it's not at all possible to make the view include unpublished nodes, I'd use an artificial flag field.

Comments

occupant’s picture

To include Unpublished nodes:
Create your new view, set Display Format to unformatted list of titles, (not linked). Continue and edit.

Change Filter Criteria - remove Published Yes

You may have to modify the Title field - deselect 'Link this field to the original piece of content' and apply

Modify page values to your preference (remove limits of titles, set pager defaults, etc).

Modify any sort criteria

You should be good to go.

Panthrax’s picture

Removing the filter criteria "Published: Yes" doesn't make the unpublished content listed. :-(

What I want to achieve is, listing unpublished content to the public (anonymous and authenticated users). I just want to communicate the mere existence of (unpublished) nodes by listing their titles (no link). I don't want these nodes to be fully viewabable - because they are actually empty.

Think of an article series that is conceived having multiple articles, each published in intervals on a montly basis or so. Now, the article listing (the view) should display all articles in the series, but only link the published ones.

occupant’s picture

Are you sure? I just did a test on a clean install and unpublished content showed up for me when I made a view as above, even when logged out. Take a look at your permissions.

As for the rest, I'm not entirely sure how I'd go about that - if I think of something I'll post it.