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

[Admin panel: menu] Ability to create HTML menu items #223

Closed
rexTexTau opened this issue Nov 27, 2020 · 1 comment
Closed

[Admin panel: menu] Ability to create HTML menu items #223

rexTexTau opened this issue Nov 27, 2020 · 1 comment

Comments

@rexTexTau
Copy link

At the moment, there is no ability to add html code to the menu items via admin panel's menu page.
Technically, you could - but the html stored in the menu item value is escaped, and raw html code becomes visible in frontend.
There are various real-world scenarios, where menu items are to include different icons before each item (not ONE icon - this is quite simply could be done using css pre, but VARIOUS icons), or even contain the icon only (for example, envelope instead of "Mail us").

This seems more like than enhancement, rather than bug, but it will be very useful if admin panel provided the capability to render unescaped HTML menu item values.

P.S. https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child , combined with pre of course will do the trick, but the overall way of doing that seems hacky and unclean.

@rexTexTau rexTexTau changed the title [Admin panel: menu] Ability to create [Admin panel: menu] Ability to create HTML menu items Nov 27, 2020
@DmitrySikorsky
Copy link
Member

You can just use your own partial views to render menu in some your way. As I mentioned in another issue created by you.

Just copy the _Menu or _MenuItem partial view in your main web app and modify them.

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

No branches or pull requests

2 participants