The album tree doesn't show on gallery page [SOLVED]

jimmi61

Joined: 2007-12-11
Posts: 4
Posted: Tue, 2007-12-11 22:06

Using the widget the album tree of my gallery is shown on normal WP pages but not in the gallery page: is it customary?

I went into the forum posts and I found some discussion like this or this but didn't help. I also included the code indicated here with the same result. You may see my test site here.

In fact what I wanted to obtain is exactly the opposite: to show the tree only in the gallery pages. Is there a way to do that?

Thanks in advance
Jimmi

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2007-12-11 23:21

Yes this is customary, Gallery2 controls the Output, thus you will need to add the Album Tree block into your Gallery2 Theme for it to show..

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

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Wed, 2007-12-12 02:26

Or you can add your WP sidebar to a custom wpg2header.php so that it shows while the gallery is embedded.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website

 
jimmi61

Joined: 2007-12-11
Posts: 4
Posted: Wed, 2007-12-12 10:47

Great, I'll try your suggestions. I believe that the suggestion of ozreg is valid if I use the Gallery2 sidebar (which I don't actually do) therefore I'll look for examples of wpg2header.php into the Gallery2 or WPG2 wiki.

capt_kirk: may you give me any address with some example?

Thanks everybody

 
jimmi61

Joined: 2007-12-11
Posts: 4
Posted: Wed, 2007-12-12 11:37

OK, I answer by myself, RTFM ;)
I created the new wpg2header.php but it didn't work. This thread says that is necessary to include this two lines

<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('wpurl'); ?>/wp-content/plugins/wpg2/css/dtree.css"/>
<script language="javascript" type="text/javascript" src="<?php bloginfo('wpurl'); ?>/wp-content/plugins/wpg2/js/dtree.js"></script>

therefore... I cancelled the wpg2header.php, I included the lines in my header.php and IT WORKS!

Good, I couldn't solve it without you guy!

Thanks
Jimmi