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

Add wrapper support for custom menus #4872

Closed
Jimmi08 opened this issue Sep 11, 2022 · 1 comment
Closed

Add wrapper support for custom menus #4872

Jimmi08 opened this issue Sep 11, 2022 · 1 comment
Labels
type: enhancement An improvement or new feature request

Comments

@Jimmi08
Copy link
Contributor

Jimmi08 commented Sep 11, 2022

Motivation

Minimalize number of needed template keys for custom menus

Proposed Solution

Adding support for wrappers in renderMenu() method:
$page_shortcodes->setVars($page)->wrapper('menu/'.$page['menu_template'] );
to menu handler.

Thanks

@Jimmi08 Jimmi08 added the type: enhancement An improvement or new feature request label Sep 11, 2022
@Jimmi08
Copy link
Contributor Author

Jimmi08 commented Sep 11, 2022

This is example of use:
Without wrapper I would need two templates with button and without button.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement An improvement or new feature request
Projects
None yet
Development

No branches or pull requests

1 participant