Menus with links are often used inside of panels. But those panels can represent different url structures that make it difficult or impossible to use the same menu between them (EG: node/123 vs group/node/123/admin/people). It would be great if there were an option for the entity source for the link tokens to be the named arguments in panels contexts. Currently if you try to use menu objects in the example above, they can't properly load because they can only target a specific position in the url. This patch would allow for the first mapped item of the designated type to be used, thereby fixing the mentioned example.

Hope this helps!

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

netw3rker created an issue. See original summary.

mpoloskey’s picture

Status: Needs review » Reviewed & tested by the community

confirm working like a charm

  • develCuy committed 3acf57f on 7.x-1.x authored by netw3rker
    Issue #2833826 by netw3rker, mpoloskey: Get entities from Panel contexts
    
DevElCuy’s picture

Status: Reviewed & tested by the community » Fixed

Thanks @netw3rker!

Status: Fixed » Closed (fixed)

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