简体   繁体   中英

Displaying Ektron submenus in Asp.net MVC 3?

I'm new to Ektron, and I'm working on a project that has Ektron menus on several pages. The menus are already displaying (someone else made the code for these). This is the code for the menu widget that is being used:

@using NEHGS.ResourceEngine

@{

    var widgetModel = Model.UserControl as NEHGS.Models.NehgsSubNavigation; 

    //string clientID = Guid.NewGuid().ToString();


    ResourceEngine.Register("/widgets/NehgsSubNavigation.css");


}

@Html.Raw(widgetModel.NavigationMarkup)

Here is an example of one of the menus this displays:

1个

In Ektron, Membership is a submenu item which contains 3 submenus, "Guest", "All", and "Information". When I click on "Membership," I need its 3 submenus to display. Being new to Ektron, I have no idea how to access those submenus. If I know how to access them it will be easy enough for me to write code to make them display, but how to I retrieve them from the widgetModel?

I hate to break it to you, but that code is not from Ektron. My first guess would be that the developer working on it before you has created their own layer on top of Ektron's API.

You also mention you are using MVC? Ektron does not support MVC yet as it is an ASP.net WebForms application. I've heard of people creating MVC front ends to Ektron but it usually ends up being more trouble than its worth.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM