Gallery 1.4 or Mambo 4.5 switching templates while viewing!

ywickham

Joined: 2005-02-16
Posts: 4
Posted: Wed, 2005-02-16 12:26

I have been able to successfully install Gallery and the bridge to Mambo for it, but when navigating to the thumbnails page of a gallery, Mambo or Gallery are changing the assigned template to one other than the template I assigned to the Galleries page on the site. Here is the Sample Gallery.

Can someone show me how to make sure that the template doesn't change when viewing the gallery?

Thanks!

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Wed, 2005-02-16 12:52

Hi,

when I click on the album in your Gallery, Mambo is generating the wrong Itemid, 82 instead of 111.
Not sure, maybe an old, menuitem in Mambo's Trashmanager?

Kai

 
ywickham

Joined: 2005-02-16
Posts: 4
Posted: Wed, 2005-02-16 14:09

Thank you Kai.

I checked my Trash Manager, but I do not have an item 82 in there at all. Any suggestions on how to go about resetting the ItemID for the gallery to 111? SQL command, maybe?

 
kai_tom

Joined: 2004-04-08
Posts: 347
Posted: Wed, 2005-02-16 15:36

I can reproduce the problem only when I create a second menuitem to the Gallery component in the Mainmenu and assign a new template to it.
When I delete the second menuitem and assign a new template to the "original" menuitem everything is ok.

Is there a second or any unpublished menuitem to the component in your menumanager?

Kai

 
ywickham

Joined: 2005-02-16
Posts: 4
Posted: Thu, 2005-02-17 14:46

Well, installing it was easy, because I didn't have any problems. I did have a holder page called Galleries before installing the component. Once I installed the component, I created a new menuitem to the component and deleted the old menuitem for the placeholder page. I also then, went back and re-assigned the template to the new Gallery. The thing is that the old page was also using the same orange template, so I'm just baffled as to how it picked up the red template.

Anyhow, to answer your question, no, I don't have a second menu item.

 
ywickham

Joined: 2005-02-16
Posts: 4
Posted: Sat, 2005-02-19 13:56

I couldn't hold off anymore, so I finally just hardcoded the ItemID in the util.php file to force the correct template on the gallery subpages. Really whis I could have found the correct solution and not a hack, but oh well.

 
LogicX
LogicX's picture

Joined: 2003-02-23
Posts: 31
Posted: Wed, 2005-03-16 03:34

could try

select * from mos_menu where id=82;

or

select * from mos_menu where link like '%gallery%';