Drupal's Views module unleashes new power for website administrators

Comments

Anonymous writes:

This is very helpful. Thank you!

Kristen writes:

Wow. This is awesome. I didn't know about the attachment stuff and I am *definitely* going to use that to do some complicated pages particularly since panels is still beta for drupal 6. Thanks for taking the time to write this detailed tutorial

Anonymous writes:

When you said (regarding attachment):

"...Then, create an attachment display, which displays a total of 6 nodes off set by 1 (to account for the first large image)..."

I am not entirely sure how to do that... where is the "off set" command you are referring to?

Thank you.

Matt Tucker writes:

Thanks for the comment. Very sorry for the typo there. That should read "offset". This setting is accessible through the Basic Settings panel under Items per page. Here you can not only set the number of items to display, but also from which item in the list to begin counting. Hopefully this clears things up a bit.

Sott writes:

This is pretty neat, but can you use more complex logic than a simple offset? For example, using the image series example above, could you modify it to present all the images in the series but excluding the main featured image?

Matt Tucker writes:

This type of logic is really not needed, because somehow you must decide which image is 'featured'. Whether the full list is sorted by post date, or nodequeue position, or otherwise, using the offset will always work.

If you want a bit more control, you could configure an argument on the 'featured' view which displays the node id given through the URL. Then, configure the attachment to use the same argument, but, configure this to "Exclude the argument". This would allow you to pass any node id to the view. This would 'feature' that node id, while displaying all other nodes fulfilling the same criteria given in the filters in the attachment.

With views, there are many possibilities, and the example provided above is merely to introduce attachments and the power that they provide.

Lopsta Ecommerce writes:

i have never tried views 2, but i love views in general. the admin interface of views 2 looks awesome, you can smell the power behind it. need to try it soon.

markosef writes:

Hi, nice text. Have one q. tough.

" Then, simply select your attachment display to propend to your first display"

you say this, i am doing just the same right now and it works nicely, but problem is when u click on other images (if nodes) you then lose the view and get to node view. So seems stuff is missing to make them perfect as seems to me that i need to hack theme than to add links to other images/nodes or am i missing something?

Matt Tucker writes:

If I understand your 'problem', you are not missing anything. The outcome that you are seeing is exactly what was originally intended for this example. There are many possibilities to achieve what I believe you are wanting. Our personal favorite is to use Nodecarousel, a module coded by our own John Fiala.

The above example was set up merely to show the power of attachments and hopefully give readers ideas of how to incorporate them into their everyday work. But, as with everything with drupal, there are many ways to accomplish one task, and it is important to use the right tool for the right job.