Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Hi, thanks for a great module!
Is it possible to add a feature to the image nodes so that is automatic trails the parent gallery (could be a checkbox in "edit content type")?. That way the menu trail woun't be lost if you use a custom menu.
I'm no coder myself, but if a solution already exists, please let me know.
I'm thinking somethink like http://drupal.org/project/nodetrail just automatic...
Comments
Comment #1
benjamin.ravn CreditAttribution: benjamin.ravn commentedMenu trails can do almost this, but is not dynamic regarding different galleries.
Comment #2
kmontyAre you requesting this for breadcrumbs?
Comment #3
NancyDru"Home" is missing from the breadcrumbs.
Comment #4
kmonty@NancyDru - This is *only* when the module is disabled? Can you disable the module and confirm this?
Comment #5
NancyDruNo, it's only on node_gallery displays. The remainder of the site operates correctly.
Comment #6
kmontyOkay, this should be a new ticket, as it is not related to the feature request.
Comment #7
NancyDruWell, since I am just not seeing much value in this module yet, I will probably abandon it again.
Comment #8
Rik CreditAttribution: Rik commentedI would also very much like this. menutrails only works to set a parent item for an imagetype content while we like to set a parentgallery for images.
for example check the images on http://www.hartemink-interieurbouw.nl/zakelijk-interieur/bar click on the link below the images to go to the image node (hitting the image uses lightbox) now the active menu item is lost. This is the main reason why I use the lightbox.
Comment #9
dbeall CreditAttribution: dbeall commentedI don't know much about lightbox, but for the other part, custom breadcrumbs works great. Use token to enhance the breadcrumbs.
In the node_gallery handbook at
http://drupal.org/node/544748#breadcrumbs
Comment #10
Rik CreditAttribution: Rik commentedyeah, but I don't really want breadcrumbs, I want a correctly activated menu trail. But hey, let me just thank you guys for all the hard work done so far. It's a great module. I hope to help some day with development but I'm pretty new to drupal atm.
Comment #11
dbeall CreditAttribution: dbeall commentedmaybe I don't understand what a menu trail is,, breadcrumbs..?
Comment #12
Rik CreditAttribution: Rik commentedHave a look at the menu on the left from gallery: http://www.hartemink-interieurbouw.nl/zakelijk-interieur/bar and compare it to an image view in that gallery: http://www.hartemink-interieurbouw.nl/zakelijk-interieur/bar/sanadome-bar
the menu trail is not active for that gallery anymore because it doesn't see the image as part of that gallery.
Comment #13
dbeall CreditAttribution: dbeall commentedok, thank you.. never heard the term active menu trail before, but it makes sense.
I am not sure what the recipe is to do it, but I haven't spend time trying things since I have no need for it.
however, since it can be done with custom breadcrumbs, I am sure it is doable in a menu format.
..thinking somewhere along the lines of a token or pathauto generated menu
Comment #14
dbeall CreditAttribution: dbeall commentedfound this thread(Add menupathalias token)
http://drupal.org/node/289630
comment #5 may be some help
http://drupal.org/node/289630#comment-2242856
Comment #15
dddave CreditAttribution: dddave commentedBumping upwards to see if this still is a valid feature request.
Comment #16
justintime CreditAttribution: justintime commentedWell, it looks like it went from bad to worse - in NG3 I can't get menutrails to work at all with galleries or images :(
However, this is a very old request. I'm going to mark it as postponed, if you're a user and you want this feature in NG3, please make it active again.
Comment #17
Rik CreditAttribution: Rik commentedI still don't have any clue on how to activate the menu when viewing images. See comment #12.
So I would very much appreciate if this feature could be added to NG3.
Comment #18
scroogie CreditAttribution: scroogie commentedI'm not sure if we can do anything about this. The problem is that Drupal 6 does not give us any information about menu items that are attached to a node. We would at least need the name or id of the menu that the gallery link is stored in to determine the correct parent item.
The only solution I could think of is to have an optional integration with the Menu Node API module (http://drupal.org/project/menu_node).
Comment #19
scroogie CreditAttribution: scroogie commentedOkay, I found a different way, but even though I set the active trail to the gallery, Drupal does not adapt to this. Perhaps we are too late in the cycle to change this. I'm testing.
Comment #20
scroogie CreditAttribution: scroogie commentedHere's another module that seems to address this: http://drupal.org/project/menu_position
If you're interested in background information about this issue you can have a look at these drupal core threads:
#520106: Allow setting the active menu trail for dynamically-generated menu paths.
#942782: Custom menus never receive an active trail
#576290: Breadcrumbs don't work for dynamic paths & local tasks
Comment #21
scroogie CreditAttribution: scroogie commentedA workaround for now, which we should probably document, is to use the custom breadcrumbs module: http://drupal.org/project/custom_breadcrumbs
It provides an option "Force the active trail" that actually works.
Comment #22
Rik CreditAttribution: Rik commentedHi scroogie, thanks for the update. custom_breadcrumbs is indeed useful its the first time I actually get the correct menu enabled in image view. I need some more time to configure it correctly because I have to configure it for each gallery, but I'm very glad you came up with this.
thanks a lot!
kind regards,
Rik
Comment #23
scroogie CreditAttribution: scroogie commentedYou should not need to configure it for every gallery manually. Just enable a custom breadcrumb for the Image node type which uses the Node Gallery tokens [parent-node-gallery-title] for the title and [parent-node-gallery-path] for the Path. Having the Gallery path in the breadcrumb will enable the menu trail for Gallery links.
Comment #24
Rik CreditAttribution: Rik commentedWell that's just awesome :-) That does exactly do what I need!
Thanks again!
Comment #25
scroogie CreditAttribution: scroogie commentedYou're welcome. Marking as documentation.
Comment #26
justintime CreditAttribution: justintime commentedupdating component