Hello all.

I would like for each Gallery created with image_gallery to be available as a node. This would allow me to insert a reference to it into other nodes, through CCK's node_reference field type.

This is in regards to this ticket (which I have closed):
http://drupal.org/node/508636

...and this forum thread:
http://drupal.org/node/502308

If this is impossible, or simply a bad idea, let me know. If I can't do this, I will probably have to go with other image handling options.

Sorry to be such a pest about this!

Comments

joachim’s picture

A gallery is a term -- to also create a node for that would be somewhat redundant. If you want to point to the gallery from a node, use a taxonomy field which AFAIK also exists in CCK.
If you really do want a node (if you wanted extra fields say), you could put the taxonomy field on the gallery node type and use that to pick the gallery.
Or you could just use noderefs to create galleries instead of the built-in system.

Karlheinz’s picture

If you want to point to the gallery from a node, use a taxonomy field which AFAIK also exists in CCK.

CCK does not have a Taxonomy field. There are two third-party modules for 6.x which will do this: Content Taxonomy (adds a CCK field), and Taxonomy Super Select (adds Taxonomy to all nodes). I have not tried either as of yet.

In any case - since these are third-party modules, they integrate with core Taxonomy, and Image does not use core Taxonomy (from the issue you pointed me to). Perhaps you could get together with the CCK maintainers to write something similar which uses Image's taxonomy? Just a thought.

joachim’s picture

Image's taxonomy is just taxonomy.
If the various CCK taxonomy have been properly written, the term links they output will go to the proper page. (You're right, they're not in the CCK package, but I meant taxonomy as CCK fields.)

I still think though that if you want galleries to be nodes, you should build something with noderef instead of using the image_gallery module -- then each image points to its gallery node instead of having a term.

joachim’s picture

Status: Active » Closed (won't fix)

This isn't something we're going to have time to implement, and like I say, if you want galleries to be nodes you're better off not using image_gallery module at all.