Hello,
I was wondering if someone could help me. I am using Mambo 4.5.2 and Gallery 1.44pl6. Everything is working well. I am trying to force the Random Photo Block thumbnail to open in a separate template assigned to my Gallery component. For example, I have the Random Photo Block in a 3 column template, on thumbnail click I'd like to force it to open in a 2 column template so that the larger intermediate size image doesn't break the layout. Is this possible? Where would I modify the code? I'm thinking it's somewhere here:
if (!empty($index)) {
$id = $album->getPhotoId($index);
echo ""
. "<center><a href=" . makeAlbumUrl($album->fields["name"], $id) . ">"
. $album->getThumbnailTag($index)
. "</a></center>";
but I'm not PHP savvy and don't want to 'break' anything.
Thank you in advance for your help.
Posts: 31
Can you provide your URL?
I'm not sure if I understand exactly what you mean -- if this is totally mambo integrated, perhaps you are looking for a solution similar to what I do at http://FPuX.com Click into my gallery, and notice how the right column disappears, leaving a two-column layout.
This was accomplished through a template modification and module modifications. I'll be pleased to go into more detail.
Posts: 6
I ended up hard coding the Item Id into util.php after reading a similar post here.
It was on a testing server with about 4 different templates assigned to different menu items. The random photo appeared on the main index page which had a 3 column structure. I wanted the thumbnail link to open the full size image in a template that had a 1 column structure to preserve the layouts.
If you know of a way to modify the random block script so in the future I won't have to hard code a template's ItemId that would be helpful
Thanks
Posts: 6
^bump^
I need help with this issue once again. I upgraded to Gallery 1.5 and the util.php file has changed. I'm unable to hard code the Mambo template Itemid I have assigned so I had to disable the random image since it opens in the default Mambo template which is too small and breaks badly
Anyone know where I can hard code the Itemid, whether it's a gallery file or somewhere in the block-random.php to always force it to use the template assigned???
TIA