Limited integration with Drupal and G2.0.2
duckpuppy
Joined: 2004-11-09
Posts: 18 |
Posted: Tue, 2006-02-28 17:47 |
I'm not sure if this would work, but I'm gonna ask anyway. I have a standalone G2 install that I like alot... so much that I don't mind it being standalone and linking from my Drupal main menu to it. I don't really care to EMBED it into Drupal (or at least view it embedded), but I WOULD like to be able to synchronize users and link to the images easily in Drupal (I remember seeing that an input filter had been added to the gallery module for Drupal that allowed simple G2 image references to posts... am I correct in that?) My desires, in order, are: I figured I could just disable the link to the embedded gallery in Drupal and keep my http://www.mysite.com/photos link on the main menu - then my menu link goes to my standalone install but the integration is active. Then I should get the other benefits even though I don't use the embedding. I haven't tried it yet, though... I was hoping to get a second opinion before I tried it. Is it possible to accomplish at least item 1 using the drupal module? |
|
Posts: 189
1. Can be done. Check out:
http://drupal.org/node/40465 and http://drupal.org/node/41590
2. Embedded Gallery2 in Drupal does sync users
3. This could be done, but may require some work. Maybe the Sections module could help: http://drupal.org/node/34969
It seems that what you want in Gallery2 embedded in Drupal (to get all the above benefits) but you want to keep your current Gallery2 theme. You can as a minimum just turn off all the sideblocks when viewing gallery pages. The problem is the header/footer -- this is not easy to remove in Drupal 4.6 (maybe easier in 4.7?), but if you manage to have a separate theme for gallery pages (3 above), then you can just define a page template that does not render the header.
Some php and templating work probably required.
Posts: 18
I don't think it's possible without lots of code rewrites...
The TinyMCE plugin just doesn't work right for me... I could traverse my gallery folders and it would insert the right G2 filter code, but the thumbnails never showed up.
The G2 filter insists on creating a link to display the image in the embedded view, which I absolutely don't want (my gallery theme blows up spectacularly when viewed embedded). My preferred action would be to open the image in my standalone site in another window... at worst, it should open the image in my standalone site in the same window, leaving my Drupal site.
The last thing I want is the gallery actually VISUALLY embedded into Drupal. I just wanted an easy way to reference items in my G2 install from Drupal, and was hoping I could coerce the existing modules to fit my needs without lots of rewriting.
I may decide to tackle these someday, but right now it looks like I'll be just copy-pasting URLs in my blog entries and uploading the images I want to show in my blog entries with the Druapl img_assist module... much less hassle.