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 would like to use a menu rather than a view as my pager navigation. Would be great if you could set the menu parent and step through the menu items.
Comments
Comment #1
mstrelan CreditAttribution: mstrelan commentedHere are the PHP snippets I have used to achieve this. I won't be writing a patch to integrate this at this time, but perhaps somebody would like to use this as a guide
Visibility code
You could have the normal menu parent dropdown and filter the query by mlid rather than link_path
Items code - mostly borrowed from submenutree
Comment #2
joelstein CreditAttribution: joelstein as a volunteer commentedFYI, there's now a Drupal 7 module which does this called Menu Pager.