Hi

Is there a simple way to show a full gallery in a block?

Comments

Brian@brianpuccio.net’s picture

Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new375.05 KB

You can use the views module. I use it on my website. I've attached a screenshot. Does this solve your problem?

naheemsays’s picture

Status: Postponed (maintainer needs more info) » Active

It would be when Views is ready for Drupal 6 :P

Until then (not a long wait - I assume a beta will be out within a few weeks), are there any code snipits that can be used to show a gallry?

Brian@brianpuccio.net’s picture

Ah, sorry, I'm still on Drupal 5. Glad to know image.module works for D6.

superflyman’s picture

hey brian,
I am using Drupal 6 and Views 2 module. How did you implement this? I have been unable to replicate. Can you provide some steps please? It would be greatly appreciated! Thanks-

sun’s picture

Status: Active » Fixed

Update to the latest development snapshot, create a view that lists all images belonging to a certain image gallery (taxonomy term).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

"create a view that lists all images belonging to a certain image gallery (taxonomy term)."

I would actually love to know the instructions on how to do that. I've been trying for a while now and all I got is it shows me a link to the image, but not the image itself...

If it helps, here are my settings,
http://tinypic.com/view.php?pic=b9hg5g&s=5

View settings
Tag: None

Basic settings
Name: Defaults
Title: None
Change settings for this styleStyle: Grid
Change settings for this styleRow style: Fields
Use AJAX: No
Use pager: No
Items to display: 10
More link: No
Distinct: No
Access: Unrestricted
Exposed form in block: No
Header: None
Footer: None
Empty text: None
Theme: Information
RearrangeAdd

Relationships
None defined
RearrangeAdd

Arguments
None defined
RearrangeAdd

Fields
Node: Body Body
Node: Link Link
Node: Nid Nid
Node: Teaser Teaser
Node: Type Image
RearrangeAdd

Sort criteria
None defined
RearrangeAdd

Filters
Settings
Taxonomy: Term = Mainpage Gallery

naheemsays’s picture

I have just created a block of images - with less things set in there though.

From what I can see, all you need is to in "image: image field" in relatonships

Anonymous’s picture

Thanks for the update.

Can you help me with a bit more info?

When creating a view, which view type do you use?

Are there any other settings you add in the view?

naheemsays’s picture

StatusFileSize
new24.29 KB
Anonymous’s picture

nbz,

Sorry, i didn't notice there was an update here. Your screenshot worked! I am in debt to you, you really helped :) I've ended up using the -dev versions for views and Image, and your settings, and it works now (finally!)

Just a few quirks to get rid of now, like how to remove the "Image:" Field text next to the image in the block, and how to get the image to link to the original image instead of the node, so that i can open it with lightbox2

But the hard part is over :) I think i'll build on your advice and build a tutorial soon for others that have the same problem.

Edit: and i guess i spoke too soon.. I refreshed and suddenly it's gone.. I get the error in vies,

Error: handler for image > nid doesn't exist!
Error: handler for node > image_files doesn't exist!

And when I try to add it again, i get,

* Display "Defaults" uses fields but there are none defined for it or all are excluded.
* Display "Block" uses fields but there are none defined for it or all are excluded.

jamesmcd’s picture

Did you resolve this error? I just managed to remove the "Image:' Field text next to the image in the block by clearing clicking "Image:Image" under fields, then clearing the label. Make sure all check boxes are unselected then update the display and save the view!