hi,

Like I said, I have a very small question. I have a community website and I'm using the Gallery module to embed Gallery2.

I have indexpage, and the E-Publish module actively working on the site, but both need some form of connection with drupal node types/taxonomy to include my Gallery2 images.

my question is: Is there some way to assign a Taxonomy Term to the images in Gallery2?
[or is there some way I can get each image to turn up as an node?]

----

That being the question, I have a small idea that still needs a lot of work. Just tell me if I'm headed in the right direction.

I intend to develop a module that will, each time an image is added into Gallery2, add that same image (without duplicating the file) as an image node into the current drupal framework.

?does it sound good? is it possible?

-Gautam

Comments

paddy_deburca’s picture

Gallery is another application that runs along side drupal. Content is gallery is not neccessarily content in drupal.

I would imagine that a hook would need to be developed to search in gallery for all content given a drupal taxonomy term and display this content.

I don't know if such a search via the embedded application is possible or feasible.

Paddy.

http://deburca.org, and http://amadain.net

gautam_chandna’s picture

I already know gallery is another application, which is why I asked if taxonomies can somehow be plugged into it..

anyways.. I should have been a little more precise about my problem.

I'm still working on the module, but am having 'many' fundamental problems with both applications cores

if anyone is interested in helping, please post here..

-Gautam Chandna
--
http://www.ahste.com

sethcohn’s picture

The idea's been mentioned before (by me and others)...
Please DO implement it.

Allow it to be a fully image-compatible node (and thus take advantage of other image related modules).

andre75’s picture

I would love to see that too. I am still looking for a way to migrate my photo site to drupal (from static html) while keeping every single path intact (google has indexed about 10,000 items of my page, I would hate to loose that).
Taxonomy support for gallery seems to be a way to do this.
Unfortunatly I know about as much about PHP as I know about 42 (aka Douglas Adams final answer).

Andre

-------------------------------------------------
http://www.opentravelinfo.com
http://www.aguntherphotography.com

paddy_deburca’s picture

Getting the taxonomy term from drupal is childs play - the interesting bit would be to connect to the gallery, search for related photos and albums and display the information accordingly.

I can have a look at the gallery2 code and see how the search functions.

  • Should the result be displayed inline with the nodes like taxonomy_image?
  • Should the results be only displayed inline when the actual node is displayed?

Also,

  • If there is one match for a particular node, the match (be it photo or album) could be displayed hyperlinking it to the actual gallery item?
  • If there is one hunderd and one matches, what should be displayed - just the hyperlink ?

Paddy.

http://deburca.org, and http://amadain.net

sethcohn’s picture

At least this version does:

http://drupal.org/node/32393

gautam_chandna’s picture

I dont want to lose the look and feel that gallery2 has, so what I really had in mind was this -

This is how the Taxonomy is created [using multiple hierarchy]

GalleryVocabulary
-MainAlbumOneTerm
-MainAlbumTwoTerm
--SubAlbumOne
---SubSubAlbumOne

and so on..

One main Vocabulary for the whole gallery
Multiple Terms "AlbumOne" "AlbumTwo" and so on for the Albums in that particular level.

Each album having multiple "albumOne" "albumTwo" etc.. terms for more sub albums..

Each picture can be given more that one taxonomy term, hence linking of pictures in different albums is also possible.

Hope I'm getting through to all of you..

This is the functionality required for the Module that needs to be implemented.

On Installation -
1. Create a taxonomy Vocabulary for the gallery when installed.

On Addition of an Album or Photo
1. Creation of a Taxonomy Term in a theGalleryVocabulary, each time someone creates an album.

2. All photos contained in 'album' are listed under the term 'album'

3. The Item created also initiates the creation of a node type (could be page or story or anything for that matter) with the Title = Title in gallery, Body = Description in Gallery + the image with hyperlink to its gallery counterpart.

this way searches will lead you to pictures and albums, which when clicked on lead you to their respective albums within gallery. thus no duplication, presence within drupal as simple nodes and improved searching for the whole site.

(not sure what to do with the keywords stored in gallery for each pic - need help on that too.. is there any invisible node type? or some such?)
--------------------------

I'm quite new to making modules for drupal, so am not quite sure what exactly I should do now. Could you please recommend some modules that I could look at for this functionality (so that I can take'em apart and put'em back together?):

1. Creation of simple node with a title and body (guessing page.module should do this)

2. Creation of Taxonomy terms on the fly (guessing aggregator_otf.module)

Thanks for all the help!

-Gautam Chandna
--
http://www.ahste.com

paddy_deburca’s picture

As pointed out by sethcohn there are currently major improvements being made to the gallery module - as can be seen on http://drupal.org/node/32393

I would suggest that these feature requests be channelled to the same development team.

Paddy.

http://deburca.org, and http://amadain.net