Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placing example menu item in main-menu #107

Open
wants to merge 3 commits into
base: 1.x-1.x
Choose a base branch
from

Conversation

stpaultim
Copy link
Member

@stpaultim stpaultim commented Jun 21, 2024

Fixes: #105

I am not very confident that this is the correct fix. But, give me some feedback and I'll try again.

'title' => 'Page Example',
// item will be created in the default internal menu, which is invisible in the
// user interface.
$items['examples/page_menu_internal'] = array(
Copy link
Member

@avpaderno avpaderno Jun 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not necessary to change the route path. It can still be 'examples/page_example'.

// to the primary navigation (main-menu).

$items['examples/page_menu_visible'] = array(
'title' => 'Page Menu Visible',
Copy link
Member

@avpaderno avpaderno Jun 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Page Example: Visible Menu would be a better title which makes clear from where the menu item comes from (as most of the strings used by the example modules and shown in the user interface.)
Clearly, this does not hold true for the menu item title used for examples/page_menu_visible/simple, as that menu item is shown after clicking on the parent menu item.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Page Example not working
2 participants