How can I add a class and/or ID to be output for a Content Menu Item with Orchard 1.5?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Go to Content/Content Parts, edit the Menu content part and add a “CssClass” text field. Then, override the template for menuitem.cshtml and right after the
var tag =line, add:That should do the trick.