Hi all,
I have installed the Image module and am heavily using Image Gallery. I have optimized this with the module Pathauto and Token. My goal is to only have clean and uniform URLS. Hence Pathauto.
I have been able to change most of the words and links except my Breadcrumbs. Everything works technically but when I am in a gallery (for example "Housewarming party") I would like to change the link that leads me back to the galleries.
Breadcrumbs: Home » Image Galleries » Housewarming party
Right now when I am in the gallery "Housewarming party" and click on "Image Galleries" I go back to "mydomain.com/image/tid". I want it to go back to "mydomain.com/image-galleries".
Where can I change "image/tid" into "image-galleries"? I have looked into "image_gallery.module" and "image_gallery.pages.inc" where it says "// Breadcrumb navigation" but I must be replacing the wrong words or forget to delete word.
Can someone point me into the right direction? Thanks.
Comments
Comment #1
thealchemist commentedCan someone please help me? I've tried and tried but it all seems futile.
I've changed "image/tid" into "image-galleries" in two files: "image_gallery.module" and "image_gallery.pages.inc". Why doesn't it work?
I'd very much appreciate any help.
Comment #2
joachim commentedIf you are making your galleries with views, then the breadcrumb is being made with views.
Comment #3
thealchemist commentedThanks Joachim. Yes, I am using Views. I have looked for a breadcrumb setting but can't find it. Where do I look? Is it listed in Arguments "Global: Null" or "Taxonomy: Term ID"?
Thanks again.
Comment #4
joachim commentedI think views breadcrumbs are made automatically from the pieces of the argument.
If you want your gallery base path to be something else, try changing it in views rather than with pathauto.
You can then use taxonomy redirect module to rewrite term links to go to the right place.
Comment #5
thealchemist commentedThanks again for your reply.
I have tried to change it inside the Image Galleries and Views pages but no luck. I just mentioned Pathauto to explain my need for clean url's. I understand my problem is not related to Pathauto.
I'm pretty sure something overides the settings in the two pages mentioned above.
I hope someone will read this and help me out of this annoyance.
Comment #6
joachim commentedBut are you using pathauto to handle changing the 'image/tid' part to 'image-galleries'?
That's the part that I mean you can do with views instead.
Comment #7
thealchemist commentedI have used autopath to auto generate clean url's. I have made an alias (image-galleries) that links to 'image/tid' but it does not replace it. Both links still work. And since the breadcrumb links to image/tid it seems there is no other way of changing that than in the code.
The only thing I want to do is change the link that lies underneath the breadcrumb that links back to the main galleries page.
Comment #8
thealchemist commentedWhen I change 'Path' under Gallery page settings in Views (not 'Defaults' but 'Gallery page' display) the changes I made in the code take effect. So now the breadcrumb links to image-galleries.
This sounds fantastic so far. But there is a problem. Now it looks something went wrong with the stylesheets. The gallery page is all messed up. Not only the gallery items but also the pictures are shown without formatting.
So when I change 'Path' in Views something goes right (breadcrumbs) and wrong (css?).
Comment #9
thealchemist commentedI don't know how or what I did but it seems to work... I'll let you know if after clearing the cache and testing with multiple browsers everything still works.
Comment #10
joachim commentedNo idea how the path could have broken CSS.
But glad to hear it's all sorted.
If part of the steps you took were procedures you think should have been in the image documentation, please consider adding them.