Gallery Module: Odd linking back to parent page.

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am
Location: Houston, Texas USA

Gallery Module: Odd linking back to parent page.

Post by pixelita »

Hi, I'm working with the Gallery module for a fire department client's web site and I have created two subgalleries, Apparatus and Rescues.

Each of this is a subpage of the gallery page. I also created two separate templates, an "album" template (sheldon-album) that should just display the album "cover" image and link to the subgallery for each of those albums.

I also created an expanded template (sheldon-litebox) for each album. So far so good.

The main Gallery page is here:
http://sheldon.mytestbed.com/gallery/

And when you click on each you are taken to the respective album. Again, so far so good.

However, in either album, if you hover over the link "Back to Parent Gallery," OR even if you hover over the main Gallery page's two album cover links, you'll see the module appends "/60" to the URL, like this:
http://sheldon.mytestbed.com/gallery/60

That link SHOULD go to the main Gallery page (using the sheldon-album template). Yet it pulls the subdir template, sheldon-litebox.

What am I doing wrong? Should I check my .htaccess file? (That bit me in the behind earlier this week regarding another module on another CMSMS site. :)
onninen
New Member
New Member
Posts: 8
Joined: Sat Jun 19, 2010 8:10 pm

Re: Gallery Module: Odd linking back to parent page.

Post by onninen »

Hi,
I can confirm that I have exactly the same issue with my sub gallery links. However Gallery module adds different number to the end of sub gallery url in my site.
In my case it's 64: http://www.ikivihrea.com/kuvagalleria/Asetelmat/64/
This seems to have something to do with fact that when pretty urls are turned off, link is http://www.ikivihrea.com/index.php?mact ... 64&page=64

So I guess 64 is leftover from the original url and maybe your 60 comes from the same origin.
This might be the bug so I submitted the new bug to the gallery development page: http://dev.cmsmadesimple.org/bug/view/6058
User avatar
pixelita
Power Poster
Power Poster
Posts: 388
Joined: Sun Sep 16, 2007 3:07 am
Location: Houston, Texas USA

Re: Gallery Module: Odd linking back to parent page.

Post by pixelita »

Thank you!!!
nicmare
Power Poster
Power Poster
Posts: 1150
Joined: Sat Aug 25, 2007 9:55 am
Location: Berlin

Re: Gallery Module: Odd linking back to parent page.

Post by nicmare »

i think its no bug. its just the content_id of the page where the gallery modul is situated. and this is neccessary if you have a "deep" gallery tree.
you guys could write a "hardcoded" link in the template: {cms_selflink page=60 text="back"}
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Gallery Module: Odd linking back to parent page.

Post by Jos »

This is indeed not a bug, This is the way cmsms creates the pretty url. Gallery uses a core function for that.
onninen
New Member
New Member
Posts: 8
Joined: Sat Jun 19, 2010 8:10 pm

Re: Gallery Module: Odd linking back to parent page.

Post by onninen »

As I wish to keep urls nice and tidy, it would be nice to have this extra number at the end hided when I'm linking directly to the specific sub gallery or browsing it.

I don't think that I'm able to use {cms_selflink page=60 text="back"} when I'm using sub gallery link on the picture like this:
<a href="kuvagalleria/Asetelmat/64/"><img src="uploads/images/12032010551_mini.jpg" alt="" width="135" height="101" /></a>

Is there any workaround for this or doing something differently?
Cheers and thanks for the response!
Post Reply

Return to “Modules/Add-Ons”