Embedding G2 into website already using URL rewrite

microtech87

Joined: 2011-09-08
Posts: 1
Posted: Thu, 2011-09-08 10:35

Hi!

Im trying to embed Gallery2 into an already existing website. This website consists of multiple pages, all of which are accessible through a menu. The different pages are stored in a database and they are called using an URL of the form www.xyz.com/page.php/234/12/23/ where the numbers redirect to the correct page.

I want to embed Gallery2 into the website, so that by clicking on certain menu entries, certain Gallery2 albums are shown. For example, if I have an menu entry "EventXY > Pictures" and I click on it, I want the website to show the corresponding album.

I already got all of this to work and a call to such an album looks like this: www.xyz.com/page.php?g2_itemId=11/234/12/23/
But there remains one problem: When showing the embedded album, I still need the "/234/12/23/" (e.g. to highlight the current menu-entry) and all the links contained within the album (e.g. clicking on a picture) have a URL of the form www.xyz.com/page.php?g2_itemId=17

How can I fix this? Is there also a solution when I use URL rewrite within G2, e.g. www.xyz.com/page.php/v/11/234/12/23/. Where the "/v/11" part is for G2 and the "/234/12/23/" part is for my website?