Very BASIC question...

jtpalette

Joined: 2010-04-27
Posts: 3
Posted: Tue, 2010-04-27 17:08

Hello all!

I've recently installed G2 and now I have a basic goal/ usecase...

Here's a scenario:

I have 3 php pages. One page is for "boats" (boats.php), another is for "motorcycles"(motorcycles.php), and the last is for "light trucks"(trucks.php).

Is it possible to create three different photo albums in G2, one for boats, the other for motorcycles, and yet another for light trucks, and just add snippets of code to my original php pages to pull the images down from the database?

Ideally I'd love to avoid editing G2 templates. I just want to work with the output code if possible.

I hope this makes sense!

Thanks to anyone in advance. :)

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Tue, 2010-04-27 17:52
Quote:
Is it possible to create three different photo albums in G2, one for boats, the other for motorcycles, and yet another for light trucks,

Yes just create 3 albums.

Quote:
and just add snippets of code to my original php pages to pull the images down from the database?

THis is where you lost me. You want to add items to gallery from those pages? then yous use the apropriate add ite function:
http://codex.gallery2.org/Gallery2:How_to_Add_Items#How_to_Add_Items_from_another_Website
or
http://codex.gallery2.org/Gallery2:How_to_Add_Items#How_to_Add_Items_from_the_Local_Server_.28or_with_FTP.29

If that is not what you want to do then you have to be a bit more verbose and explain a bit better.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
jtpalette

Joined: 2010-04-27
Posts: 3
Posted: Tue, 2010-04-27 18:08

Hey Dave,

Thanks for the response.

No, I do not want to add items to gallery from those pages. But the opposite.

Basically, I have an existing static brochure site: home, about, contact, etc. I wan to add a photo gallery to that site. I don't want the user to to click "photo gallery" and it goes to G2 and look completely different from the existing site. I was hoping there was an easy way to display photos without a lot of development time involved.

From what what I've been reading, it seems like I'll have to clone a theme, modify that theme (with my header, navigation, etc), and use that theme with my G2 install. Pretty much like any other open source situation you'd like to customize....

But right now, that's too much WORK. lol

I already have my static site. If I could just have a page(s) within the site that showed the images from an album, that would be great for now.

Makes sense?

Jason

 
jtpalette

Joined: 2010-04-27
Posts: 3
Posted: Tue, 2010-04-27 18:15

I guess I could make this even simpler...

Do G2 offer a module to display its contents on existing, static pages?

Whewww. :)

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-04-27 18:23

Yes, there's the ImageBlock plugin as well as this 3rd party tool, which I find easier and more reliable to use:
http://www.flashyourweb.com/staticpages/index.php?page=mediaBlock

Note, MediaBlock still requires the ImageBlock plugin to be installed.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-04-27 21:18
Quote:
Note, MediaBlock still requires the ImageBlock plugin to be installed.

Actually not really.
mediaBlock will check for imageBlock's disabled flag(if you don't want an album included in the random image block) but if imageBlock is not installed/active mediaBlock will display the item.

To answer your original question...

Quote:
just add snippets of code to my original php pages to pull the images down from the database

You can use my easy embed tool for your purposes.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Tue, 2010-04-27 21:28

Thanks, that's good to know. Looks like I can actually uninstall that plugin then :)
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here