Hi folks,

I'm turning to you all for help on some functionality for a site I'm working that is built with Drupal 6. I'm certainly no drupal expert but I've spent several months learning by doing and have a handle on most of the basics. That said, I'm having trouble determining the best way to go about creating a gallery functionality for the site I'm working on. Here's the idea:

Within the main site I have a google map which shows office locations around the country. When you click on a marker on the site it brings up an info window with the office name, staff and location. If you click on the office it brings you to a node for that office location. Now, I'd like to create logins for the office managers at each of these locations and allow them to upload photos and video to the site which would then display on their specific office node. I'd like the uploaded photos to be their own nodes so that people are able to leave comments, etc.

I've tried using Image, and Image Upload. I've also played around with Node Gallery, which seems to suit my needs fairly well but I'm not sure how to then display the uploaded photos in a gallery on the appropriate office location nodes. I understand I could set up a gallery for each location, but I had hoped there would be a way just to have a single gallery which would then display the appropriate photos on the appropriate office location nodes using views. Just not sure if this is possible and if so, how to do it.

Any help is greatly appreciated. If you think i'm on the wrong track or there is an easier way to do things, let me know. If it's not easier but you can provide guidance on how to get it done, that's welcome also.

UPDATE: I think this is possible using a Views Argument by Node ID or Node Title, so that the content displayed in the block depends on the NID of the page, but I'm not having any luck getting it to work. Any ideas?

Comments

dbeall’s picture

I mess with node gallery a little.. Using CCK with text and option widgets, path, pathauto, token and taxonomy
You can add a taxonomy vocabulary to the gallery content type with a list of the possible(allowed) locations, by city name, outlet number or what ever. Then use that taxonomy in pathauto settings to provide a separate path for each gallery(each gallery is a node by default).
at (administer > Site building > URL aliases > Automated alias settings) (Taxonomy term path settings)

If using node gallery, the custom breadcrumbs will come in handy.

devnyc’s picture

See update above. Can anyone give me a hand with the Views Argument to get this working? I've tried a few different things I've found on the forum but none of it seems to be working.

Thanks

devnyc’s picture

Perhaps a more simplified example of what I'm trying to do: If i add a field to "Image" content type of "Office" which populates with the available Office location nodes, and then i upload a picture (as it's own node) and select the appropriate node using the "Office" field. How do i then use Views arguments to display the picture on the appropriate node? I tried using an NID argument and the query is not returning any photos. all it returns is:

"SELECT node.nid AS nid, node.title AS node_title, node.type AS node_type FROM node node WHERE (node.type in ('image')) AND (node.nid = 0)"

Again, any help is greatly appreciated. Thanks, guys.