KnpLabs / KnpLabs/KnpMenu

is there any way to get previous and next menu items with respect to the current page (menu) item opened ?

Open
#210 11 comments 0 reactions 0 assignees View on GitHub
Doc
Dominant language
PHP
Stars
1.4k
Forks
189
PR merge metrics
No merged PRs in 30d

Description

Hi,

This is common requirement in blogging that when user is on current page, we need to add previous and next links.

Is there any way to get previous and next menu items with respect to the page opened ? Something like,

knp_menu_render('menu', {'next': 1});

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the menu rendering entry point represented by knp_menu_render('menu', {'next': 1}) and how the current page or menu item is identified. Determine the expected behavior for previous and next links, then verify that the proposed capability works for menu boundaries and typical blog navigation.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.