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

benjamin.ravn’s picture

Menu trails can do almost this, but is not dynamic regarding different galleries.

kmonty’s picture

Priority: Minor » Normal

Are you requesting this for breadcrumbs?

NancyDru’s picture

"Home" is missing from the breadcrumbs.

kmonty’s picture

@NancyDru - This is *only* when the module is disabled? Can you disable the module and confirm this?

NancyDru’s picture

No, it's only on node_gallery displays. The remainder of the site operates correctly.

kmonty’s picture

Okay, this should be a new ticket, as it is not related to the feature request.

NancyDru’s picture

Well, since I am just not seeing much value in this module yet, I will probably abandon it again.

Rik’s picture

I 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.

dbeall’s picture

I 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

Rik’s picture

yeah, 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.

dbeall’s picture

maybe I don't understand what a menu trail is,, breadcrumbs..?

Rik’s picture

Have 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.

dbeall’s picture

ok, 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

dbeall’s picture

found this thread(Add menupathalias token)
http://drupal.org/node/289630
comment #5 may be some help
http://drupal.org/node/289630#comment-2242856

dddave’s picture

Version: 6.x-2.0-alpha9 » 6.x-3.x-dev

Bumping upwards to see if this still is a valid feature request.

justintime’s picture

Status: Active » Postponed

Well, 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.

Rik’s picture

Status: Postponed » Active

I 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.

scroogie’s picture

I'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).

scroogie’s picture

Okay, 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.

scroogie’s picture

Here'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

scroogie’s picture

A 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.

Rik’s picture

Hi 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

scroogie’s picture

You 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.

Rik’s picture

Well that's just awesome :-) That does exactly do what I need!

Thanks again!

scroogie’s picture

Component: Miscellaneous » Documentation
Category: feature » task

You're welcome. Marking as documentation.

justintime’s picture

Component: Documentation » Howto/FAQ/Example
Status: Active » Fixed

updating component

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.