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!
|
|
Posts: 56
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
Posts: 3
GSThing,
looking at your site http://theartfile.com/cms/ you seem to have cracked this issue.
What was the solution?
Posts: 8
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
Posts: 3
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.
Posts: 8
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
Posts: 3
of course...
http://www.toccataphoto.com
Regards - Roelof
Posts: 8
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
Posts: 17
Thanks for posting your findings guys. This helped me out as well!
Posts: 1
That is a bizarre solution, but it worked for me as well. Thanks for posting it.
Posts: 8
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