[tags] Howto make a Tag Virtual Album Link to the actual Album Picture?

blafasel2

Joined: 2009-05-08
Posts: 2
Posted: Fri, 2009-05-08 00:22

Hello,

I have several albums and a tagloud from all albums.

I want to make the thumbnails in the tag virtual album link directly to the album page.

I think this should make it clear:

When I click on a tag in the cloud a tag-album appears.
(e.g. http://fiwa-digital.de/bildergalerie/tag/kaffee)

but if I click on a thumb in this tag-album i'm not in the album the image belongs to instead the image has it's one page:

e.g.
the link that i want to have is:
http://fiwa-digital.de/bildergalerie/fotografen/Chritian/kaffee3.jpg.html

what i get at the moment is:
http://fiwa-digital.de/bildergalerie/tag/Kaffee?g2_itemId=423

where do it have to look for it?

I'm not very familiar with structure - maybe someone could point to the correct files?

regards

(gallery 2.3 with wpg2 current tags plugin)

Login or register to post comments
alecmyers

Joined: 2006-08-01
Posts: 3854
Posted: Fri, 2009-05-08 07:33

Small change - I'll try to work it out for you later.

Login or register to post comments
blafasel2

Joined: 2009-05-08
Posts: 2
Posted: Fri, 2009-05-15 21:24

Hey, thanks for your offer to help me.

Any news here?

I don't think I'll need a step by step guide. Just a hint were exactly to look or maybe a short explanation. I'm neither a PHP or Smarty guru and allthrough gallery looks like cleanly designed and well written I have a hard time understanding the code.

Thank you very much.

Login or register to post comments
alecmyers

Joined: 2006-08-01
Posts: 3854
Posted: Fri, 2009-05-15 21:52

sorry... been meaning to get back to this.

Try inserting the following two lines into VirtualAlbum.inc at line 61, directly after "if (!empty($itemId)) {"

	    $redirect = array ('view' => 'core.ShowItem', 'itemId' => $itemId); 
	    return array(null, array('redirect' => $redirect));
Login or register to post comments