I have a situation where I have a cck node A that contains a collection of cck node B (through node reference). There are potentially 10,000 A type nodes all containing 40 B type nodes, which translates to about 400,000 nodes. I was experimenting with adding gallery to both the A and B type nodes. The problem that I'm having is that is if I add a gallery for every B type node, it will essentially double the amount of nodes in my DB, which starts to get unwieldy. I'm wondering if there is somehow a way to add the galleries only to the A type, and then (every image would belong to the parent type) and then use views in some capacity to show only those images the pertain to the B item . . . when it is being viewed.

CommentFileSizeAuthor
nodes.jpg52.96 KBdereckd
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

scroogie’s picture

I'm not sure I understand. What are the *items* in Type B that should be shown in a Gallery? If Type A is the Gallery Type, Type B would be the Items.

dereckd’s picture

Sorry, I know that was a bit convoluted, let me try and give a real world example.

Lets say i have a cck node type called animal type (type A) I have around 10,000 different animals types, cats, dogs etc.
Within each of those "categories" i also have an animal cck node. So the cck node dogs would contain a ref to 30 specific dogs, Spot, Killer, Beuford etc. I want some way to display all the dogs in the dog category at once, but I would also like to be able to just show images of Spot, when I click on the Spot node. I'm assuming there is some way to do this using views, I'm just a little unclear about how to go about it. it would seem that creating a separate gallery for every individual instance of dog, is the wrong way to go.

Thanks in advance for your help

scroogie’s picture

Ah, now I get it. You want a gallery of galleries. Unfortunately we decided against this feature for Node Gallery 3.x, because of its complexity. You can watch it here, perhaps its gonna be reopened someday: #389462: Allow sub galleries.

Until then you can indeed use views: just create a node view of nodes with the type of your gallery and set the according filters. To get a start you can clone the gallery summary view.

scroogie’s picture

Status: Fixed » Closed (fixed)
Issue tags: -views, -node_gallery

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