I'm confused about a couple of things on a small artist site I'm building. It has several galleries, each several pieces of art, so there is a main gallery page which list a handful of individual galleries.
- I changed path of main gallery page to /art in views config. It works as desired. The problem is that the path /image also remains active, too - and that path takes user to a different version of the main gallery page (the original one generated by image module, I think). How do I get rid of that? I only want the one path to /art to work.
- Related to above, in breadcrumbs when you're in an individual gallery, the breadcrumb says 'Home > Image Galleries' where 'Image Galleries' takes me to the /image page (the one above that I don't want). It should say 'Home > Art Galleries' where 'Art Galleries' takes you to the /art page (the custom views version). The correct breadcrumb appears when you click to an individual image within a gallery, then the breadcrumb is what it should be ' Home > Art Galleries > GalleryName' where clicking on 'Art Galleries' takes you to the /art page.
What have I done wrong? I need to get rid of this /image path and switchover the breadcrumb to the right path throughout. How to fix it?
Thank you.
Comments
Comment #1
joachim commented> - I changed path of main gallery page to /art in views config.
Yeah, that's going to cause wackiness. We depend on the way Views takes over existing paths to hide the original galleries.
You can get rid of that path with hook_menu_alter() probably.
> - Related to above, in breadcrumbs when you're in an individual gallery, the breadcrumb says 'Home > Image Galleries' where 'Image Galleries' takes me to the /image page
The breadcrumb on a whole gallery is being provided by Views, hence you really shouldn't be seeing that. Are you sure you have that the right way round? Individual images have a hardcoded breadcrumb to /image. That could do with fixing -- I haven't got time right now but I will review a patch :)
Comment #2
john.kenney commented> You can get rid of that path with hook_menu_alter() probably.
Well, someone probably could, but not me personally. For the time being, I've changed views path back to /image. It is now all consistent, if not ideal.
> Are you sure you have that the right way round?
Yes, definitely it worked as described in op. However, by changing path back to /image, the whole breadcrumb is now consistent and correct as 'Home > Art Galleries' and 'Home > Art Galleries > GalleryName'. So this looks clean, even if the urls are not ideal. As to offering up a patch to solve the /image thing - well beyond my skills, sorry.
Sounds like doing anything other than the defaults involves more work. Let's leave it here for now. i may loop back around to this is client see this as an issue she wants to fix.
Thank you for your quick help.
Comment #3
avpadernoI am closing this issue, as Drupal 6 is now not supported.