To my root index.php or the like

pier2design

Joined: 2005-12-15
Posts: 3
Posted: Fri, 2005-12-16 02:27

I have been surfing the documentation for the better part of the day, but I have not found anything that just tells the poor web programmer how to put pieces of gallery into his pages. Or if that is really possible.

The way I understand it from the documemtation, you can add headers and footers to templates... okay fine, but that is in gallery. Then it seems all the integration stuff talks about sessions. I am not dealing with that. There is my whine about the dicumentation. I'd be glad to help out with that if I could be of any use.

My dream solution would be to simply put an include tag, or a block of code into various contaiers on my site. Is that possile? Is there documentation on this that I am missing? How do I go about this?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2005-12-16 10:16

http://codex.gallery2.org/index.php/Gallery2:Integration_Howto

it looks like you don't need user management integration, right? just visual embedding.

so there are 2 approaches:
see the 2 links under visual embedding:
http://codex.gallery2.org/index.php/Gallery2:How_Tos#Visual_Integration

- either use the normal g2 theme approach and include your header right after <body> and your footer at the end.
- or use GalleryEmbed and do not specify activeUser / session in the GalleryEmbed::init call, since you don't need it