how can I display gallery2 in my web-site

floriauck

Joined: 2004-08-01
Posts: 17
Posted: Tue, 2005-07-12 14:39

hello,

I installed the gallery2 on my server and are happy with the way it looks. Now, how can I make it appear in my web-site?

Is there a piece of code that I include in my <td>&amp;</td> table so that the gallery displays in there?

thanks for any help,

florian

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-12 14:57

if you plan to customize your g2, first get the latest nightly snapshot.

in the new version
edit themes/matrix/templates/*.tpl
you can use any html there.

you want to edit theme.tpl.

 
floriauck

Joined: 2004-08-01
Posts: 17
Posted: Tue, 2005-07-12 15:05

thanks for the fast reply. I dont want to cusomize the g2. I am happy with it the way it looks right now. I just need to implement it into my existing web-site and I dont know how to do that? any pointers for that?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-12 15:29

"mplement it into my existing web-site" = customizing.

follow the instructions from my last post please.
in theme.tpl, you can add everything before the opening <td> and everythign after the closing </td>.

 
floriauck

Joined: 2004-08-01
Posts: 17
Posted: Tue, 2005-07-12 21:01

hi,

i tried to follow your advice from the first post however I dont have a theme.tpl or the template folder in the matrix folder.

What is a nightly snapshot? I didnt know what that was, so maybe thats why I am missing that file? I downloaded the gallery 2 beta 3 version ...

hope you can help me again, its really appreciated?
are there also documents or other links about implementing into an existing web-site?

thanks
florian

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-07-12 21:18

click on "get the latest code" to get the nightly snapshot, etc.

http://codex.gallery2.org/index.php/Gallery2:faq#How_to_upgrade_Gallery2.3F

 
SiMomma

Joined: 2005-07-14
Posts: 4
Posted: Thu, 2005-07-14 16:36

Hello,

If I understand correctly, editing theme.tpl is the same concept as editing the header and footer in Gallery1? If I use Gallery2, is there a way to "include" the entire application into an existing table on my website. In other words, If my website is already utilizing one header and footer for navigation, and I am including content based on a set variable, what file in the gallery doc tree can I include to embed the entire thing?

Thanks!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-07-14 16:50

editing theme.tpl is really the easiest way. you can there include your whole page, you could even do {php}include('path/to/yourHeader.html');{/php}.

the other approach is to use GalleryEmbed...
see the Embedding and Integration sticky topic (link in my signature).
but this total overkill because you don't want to integrate / synchronize user management. if you only want to integrate g2 visually, changing the theme is the way to go.