Hi all,

As I'm almost finishing up a Drupal website, I still have one issue which I don't know how to handle. It's about publishing node's. My website has quite a variety of content types.

For example:
1. Pages. The Pages need to be shown as pages, so whether you publish them or not is perfectly obvious.

2. Images for a slideshow. These images are all nodes, but they're not suppost to be shown as 'full nodes'. I made a 'view' that takes all the image fields and shows them in a slide. So because they are not meant to be published as standalone node's, I set the view up to only select unpublished node's.

It would confuse my client to see that some content types need to be published and some don't. So I feel that I need to switch my views to 'show only published nodes', but I don't like the idea of floating node's hanging around my site.

So in short: Is there a way to 'publish' nodes, but not show them to anonymous visitors, but still end up in the 'views slideshow'?

I hope that I explained my issue clear enough. :)

Thanks in advance.
Cheers,
Danny

Comments

tryitonce’s picture

I understand your point of not wanting to loose nodes (slides, etc.) even if they are not published.

But that is not a problem. For the general public you create a view that only shows published content.

For you as the administrator you create a view only admins can see and there you include all nodes - published and unpublished. You can also create a view of all unpublished nodes.

I recently installed the bulk view module and that is a great help for the administrator as you can then not just list things you can also quickly delete them and lots more.

Good luck .....

danny_joris’s picture

Hi tryitonce,

Thanks for your reply.

My biggest concern was that when I set my nodes to 'published' while they are only meant to be viewed in a slideshow for example, that it would create a large amount of 'floating' nodes. There is no direct link to them, but they are there and that bugged me a bit.

I looked around and found somebody else with the same concern: http://drupal.org/node/618824 . He sums up 3 interesting choices. What I have now is method 1 (the unpublished node.)

But actually I'm now experimenting with another method that is not mentioned yet. What I'm doing now is using the Rules-module (http://drupal.org/project/rules) that will make any anonymous visitor that will navigate to (for example) a slideshow image (/slideshow/image-1) redirect to (for example) the slideshow page (/slideshow.). And this rule will be based on 'content type' and 'role (anonymous)'.

I think that is the best solution for now.

Cheers! :)
Danny

tryitonce’s picture

Thanks for sharing this.

I am sure it well help others to find solutions along these lines.

I use different content types for various things.

For example we have one project with a large database of salaries paid for a certain job type. Members / users fill in a CCK node with the required details. The node then disappears unpublished and the user will be able to see is a View with the summary of the data showing the results of hundreds of unpublished, "floating" nodes. But these are all of one type - so we can always separate them - also using the bulk view module.

So, good luck and thanks for taking the time to report back ....