Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I haven't found any or any reference on the other issue queues, but it would be great to add contextual link to a node via panelizer. Is there a way? If not, it would be a nice addition to panpoly, probably doing it by a ctools content pane, similar to how the global; contextual link happens in views.
Comments
Comment #1
dsnopekWhat do you mean by "contextual link"? In the sense of the 'Contextual links' module from Drupal core? Or something else?
Comment #2
hanoiiExactly that, context inks from drupal core, some way of adding the contextual link that belongs to a node, as a content pane or something.
Comment #3
dsnopekHm. I look into this more later but I think you mightbe able to provide contextual links with page manager because they are registered with the menu system. I've never done it before though.
Comment #4
dsnopekFinally looked into this! It looks like this isn't possible with Page Manager, but I think it would be relatively easy to patch Page Manager to allow it. Basically, this is some extra configuration for the menu item in
hook_menu()
which Page Manager creates. So, you'd just need something in the UI to check and say "make this a context link" and it'd add the config for it.But that's a feature request for the CTools queue! Closing here.
Comment #5
NWOM CreditAttribution: NWOM commented@hanoii
Do one of these modules include the functionality that you are looking for?
Links Pane
Ctools Custom Link
They both support contextual substitutions, and one of them supports tokens as well.