Showing G2 albums/pics in a web page

Ari Kontiainen

Joined: 2005-10-02
Posts: 6
Posted: Sat, 2006-02-11 07:36

I'm using G2 for managing my photos online. Great tool! What I'd like to do with it, is simply publish selected albums & pics to a (WordPress 1.5.2) web page for free browsing (no user authentication needed, no adding pictures, managing albums, etc). Just show albums. Slideshow would be a bonus, but not a necessity.

Users should just be able to see the pictures, like in
* http://www.hippos.fi/hippos/gallery/julkaisuvapaat_kuvat OR
* http://www.reelidentities.org/gallery/

I saw in G2 feature list (http://gallery.menalto.com/features) something called "html_wrap", which sounded like a solution to my need. However, I failed to find a simple, 1-2-3 or "Show an existing G2 album pics in your web pages for Dummies" example on how to get the thing working easily.

Any help highly appreciated!

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Sun, 2006-02-12 03:29
 
Ari Kontiainen

Joined: 2005-10-02
Posts: 6
Posted: Sun, 2006-02-12 05:29

Hmmm. Thanks, but this is not really helping. I (of course) browsed the FAQ through before sending my question, but still fail to understand all steps required.

See, I really need a Guide for Dummies... what tags (etc) to write in WP page, how to indicate there which album I want to be showed, how to manage the information to be shown next to preview pics, how to change the appearance of the embedded G2 table, etc

Is the html_wrap stuff relevant for this? I could not find it in documentation.

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Sun, 2006-02-12 05:37

html_wrap is for Gallery 1. You want to follow the visual integration steps that that FAQ links to: http://codex.gallery2.org/index.php/Gallery2:How_to_visually_embed_Gallery_in_your_own_website_by_editing_theme_templates

Basically, you copy/paste your website code into a Gallery theme and it works. Thats how http://ckdake.com/gallery/ is set up.

 
Ari Kontiainen

Joined: 2005-10-02
Posts: 6
Posted: Sun, 2006-02-12 05:53

Good looking gallery you have!

However, there might be a conceptual problem. I don't want to include "WP into G2", but vice versa. I.e. get a selected part of G2 content to be shown in WP page (as a simple table structure with previews and related data, etc). For more static HTML pages I guess this "copy-paste your website code into Gallery theme" works just fine, but I don't see it as a feasibe solution for this purpose.

Maybe G2 (centric) support is not the right place to ask? Maybe WP (centric) support is better?

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Wed, 2006-02-15 22:59

Without embedding the entire Gallery into you WP, you would need to write some code that uses the EmbedAPI to get what you want from G2 and display it in a form that WP can use. Check out the documentation for the EmbedAPI and that should be enough to get you started.

 
Ari Kontiainen

Joined: 2005-10-02
Posts: 6
Posted: Thu, 2006-02-16 10:01

ckdake, could you provide a link to (some collected, up-to-date) EmbedAPI documentation?

The only thing I was able to find was some discussion threads with some pieces of code and information that this API is changing... As I'm not that deep in programming, I'd really need some more simple instructions.

 
ckdake
ckdake's picture

Joined: 2004-02-18
Posts: 2258
Posted: Sat, 2006-02-18 05:14

Theres not much great documentation out there just yet, it is still changing and we are still working on it so if you don't want to get too deep into coding you may want to wait for things to mature a bit more before attempting it.

Take a look at http://codex.gallery2.org/index.php/Gallery2:How_to_visually_embed_G2_in_your_own_website_using_embedded_mode if you want to give it a shot.

Other documentation you may need to dig through includes the CoreAPI (which you can use to request specific things from G2): http://gallery.menalto.com/apidoc/GalleryCore/Classes/GalleryCoreApi.html