wpg2 on main page

bforsse

Joined: 2008-02-26
Posts: 13
Posted: Tue, 2008-02-26 21:25

Hi,

I would like to embed wpg2 photos into the main index page. What is the best way to go about doing that? Do I need to change the wpg2 output options?

Here's the site I'm working on:

http://www.bforsse.org/

Thanks,
-Brian

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-02-26 21:38

Not sure what you mean embed photos in the main index page, I think you are referring to the option to change the WPG2 output page to instead point to the Gallery Standalone Page?

http://codex.gallery2.org/Integration:WPG2_Options_-_WPG2_Output

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
bforsse

Joined: 2008-02-26
Posts: 13
Posted: Tue, 2008-02-26 22:06

Thanks for your reply.

Ideally I want the front page layout to contain the gallery as well as the wordpress blog. Two columns, the left one containing the gallery, the right containing blog posts and a few various other things.

I'm new to wordpress/wp2g so maybe there's an easy way to do this that I'm overlooking. Do I have to edit the themes manually?

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-02-27 00:05

You can add Gallery2 content to your Wordpress Blog (See my blog for an example). You cannot however add blog posts to Gallery2 Output. Technically this is possible (via the WPG2 Page, as the WPG2 page is just a wordpress page) however WPG2 does not do this.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
bforsse

Joined: 2008-02-26
Posts: 13
Posted: Wed, 2008-02-27 01:36

Hmm, that will make this an interesting endeavor. To give you an idea of what I'm trying to do here's a cache snapshot of my old site (sorry about the broken links). I used IDS along with some custom scripting to get that working.

Is it possible to move the embedded WPG2 content from a sub page to the main page? I tried setting the "WordPress address (URL):" to the "URL to WPG2 Output" which gave me some interesting results: the WPG2 page with WP header and footer, but with no CSS formatting. Also I had to hack back into the mysql database to change the option back. I imagine this isn't the correct way to do it.

Since there isn't a way to add WP blogs to G2, is there some way to edit the WP front page theme to include a WPG2 section?

[img]http://www.bforsse.org/images/oldbforsse.jpg[/img]

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-02-27 01:59

Technically what you want to do can be done.. For example you could create a Wordpress page that lists blog posts and also add links to your Gallery2 Albums in those posts.. Programmatically you could do even more to create the full dynamic content you wanted.. From a pure WPG2 point of view, linking of blog posts to albums will not happen until either WPG2 3.1 or 3.2... it is in the pipeline because we want Wordpress / Gallery2 Comments and Tags to be linked it does depend on time which I never have enough of.

What you are describing is very possible however not as a just out of the box solution sorry..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
bforsse

Joined: 2008-02-26
Posts: 13
Posted: Wed, 2008-02-27 02:39

Excellent, thank you for the response. I'm glad to hear that the feature is on the horizon so I don't kill myself digging into the code. I'll make due with blog links until then, happy coding!