Gallery 2 & Joomla 1.0.12 integration

GSthing

Joined: 2007-01-15
Posts: 8
Posted: Mon, 2007-01-15 16:31

Hi all,

I know this is likely to be the wrong forum but I'm a bit stuck and hoped someone would take pity!

I've got my gallery and my joomla installations all playing pretty well together bar one issue.

My site is here http://theartfile.com/cms/ and the gallery integration, as it stands, here http://theartfile.com/cms/index.php?option=com_content&task=view&id=19&Itemid=36

That's a static content page and all the sub-pages you'll see link to one specific gallery, each of which are sub-galleries themselves.

So, please go to http://theartfile.com/cms/index.php?option=com_gallery2&Itemid=52&g2_itemId=246 and click on any thumbnail. There should be a big image of that one file, but no - instead I get _g2_wrong_itemid and I can see in the URL that the item id has a heap of 9s in it instead of the id for the specific image.

That, however, is how I need this site to work - so it shows specific albums on specific pages. Each of those sub-pages, by the way, are Joomla "link - url" pages with the actual url pasted in. No problem. Until the thumbnail to big image thing.

However if I go about this in a different way and start my main page (currently called everyday ranges) using a Joomla "Component - Gallery 2" page things work, but what I start with is no good. This way I get my first page showing thumbnails of my main galleries - everyday ranges and christmas ranges. Then, if I click on everyday, I get a page of thumbnails for each of the ranges (sculpture, Amanda Dilworth etc.,) then I click on one of those and I get the gallery it relates to. Finally clicking on a gallery thumbnail does give the correct large image but this is too many clicks, it's too deep.

I really need to show a specific gallery on a specific page, as the site is set up right now and then I need to either disable the link from the thumbnail to the large image (secondary option) or I need the thumbnail to link correctly to the large image (desired option).

No matter how I search I can't find much by way of instruction for G2Bridge (which I've used for integration) however I know about the issue with URL Rewrite and that module is disabled.

Any advice or suggestions would be deeply appreciated as this site is, near as damn it, finished and ready for me to hand over - at least it will be when I fix this issue!

Also, please bear in mind I've no idea about coding. I make stuff work either by reading instructions (about 20 times), trial and error or shear luck. I'm in to design, not code. So I'd be extremely grateful if any responses are in laymans terms.

Thanks all!


Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.4.4 cgi
Webserver = Apache/1.3.37 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.28 OpenSSL/0.9.7a PHP-CGI/0.1b
Database = mysql 4.1.21-standard, lock.system=flock
Toolkits = ArchiveUpload, Exif, Gd
Acceleration = none, none
Operating system = Linux hs004.4uh.com 2.6.9-42.0.3.ELsmp #1 SMP Fri Oct 6 06:21:39 CDT 2006 i686
Default theme = floatingmatrix
Locale = en_GB
Browser = Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1

go placidly amidst the noise and haste

 
GwaiTsi

Joined: 2007-02-09
Posts: 56
Posted: Fri, 2007-04-06 06:35

if you are using SEF Advance or compatible SEF component, i have a sef_ext.php which makes the rewrite module work when embedded in joomla.

you can download from sjr.greatsouthernwines.com Instructions for use are in the header of the file.

works with g2 rewrite active or not, but prefers g2 rewrite to be active.

you can see it in action at www.canza.cz/photos

you can also access a specific album i.e. www.canza.cz/photos/?g2_itemId=393

see how you go

 
toccata

Joined: 2007-04-10
Posts: 3
Posted: Tue, 2007-04-10 11:35

GSThing,

looking at your site http://theartfile.com/cms/ you seem to have cracked this issue.
What was the solution?

 
GSthing

Joined: 2007-01-15
Posts: 8
Posted: Tue, 2007-04-10 15:33

Thanks GwaiTsi for the suggestion.

And I've sort of solved it, Toccata, with a bit of a bodge.

It seems the integration needed to have the main gallery page available in order to make all the other pages work properly. But I didn't want that page to show so I put it in a hidden menu. There's a menu area at the top of theartfile.com page that, in Joomla, is published but not visible (if I remember correctly) and this works as it makes the main gallery page, effectively, active even though a user can't easily navigate to it.

There are links to it in the breadcrumbs when a user drills right down to the individual card view (here) - if you look at the breadcrumbs you'll see 'all ranges' as the second entry - this page isn't accessible from any other menu entry and it's that page that needs to be available, or active, to solve my problem.

I could remove the breadcrumbs too, to make it a bit more elegant, but I like them so they stay. The client is happy and the site is easy for them to edit, add galleries to, etc., so all's well.

Good luck and thanks!

Greg

go placidly amidst the noise and haste

 
toccata

Joined: 2007-04-10
Posts: 3
Posted: Wed, 2007-04-11 20:58

You say "bodge", I say "lateral thinking" :-).

Nice solution, and worked for me too - thanks for sharing.

I created a new module position "dummy", to ensure the solution is template-safe. Then added a published dummy menu in there with com_gallery2 as a dummy menu item. Then it's all published, but of course not visible as the template does not know about the dummy position.

 
GSthing

Joined: 2007-01-15
Posts: 8
Posted: Wed, 2007-04-11 21:16

Nice one mate. What's the URL? I'd be interested to see if I may.

All the best,

Greg

go placidly amidst the noise and haste

 
toccata

Joined: 2007-04-10
Posts: 3
Posted: Thu, 2007-04-12 06:16

of course...
http://www.toccataphoto.com

Regards - Roelof

 
GSthing

Joined: 2007-01-15
Posts: 8
Posted: Thu, 2007-04-12 08:17

Ah nice mate!

Like this especially since I have a 2 year old daughter, and a baby due in June!

Keep up the good work Sir, hardly a hobby looking at the quality.

Greg

go placidly amidst the noise and haste

 
PerformanceImagery

Joined: 2007-12-12
Posts: 17
Posted: Sat, 2007-12-15 06:59

Thanks for posting your findings guys. This helped me out as well!

 
mreinfeldt

Joined: 2008-01-10
Posts: 1
Posted: Thu, 2008-01-10 23:35

That is a bizarre solution, but it worked for me as well. :) Thanks for posting it.

 
GSthing

Joined: 2007-01-15
Posts: 8
Posted: Fri, 2008-01-11 09:05

Bizarre or not, it works! Used the same solution 3 times now. In situations where I only want the individual galleries to show and not the main page with all the sub-galleries this was the only way I could find to do it.

Greg

go placidly amidst the noise and haste