mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 19:34:40 +08:00
#19100: Fixing Menu and MenuItem templates when returned by Queries
Work Item: 19100 --HG-- branch : 1.x
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
@{
|
||||
// odd formatting in this file is to cause more attractive results in the output.
|
||||
var items = (IEnumerable<dynamic>)Enumerable.Cast<dynamic>(Model);
|
||||
var items = Enumerable.Cast<dynamic>((System.Collections.IEnumerable)Model);
|
||||
}
|
||||
@{
|
||||
if (!HasText(Model.Text)) {
|
||||
|
@@ -5,8 +5,10 @@
|
||||
Script.Include("admin.js");
|
||||
IEnumerable<dynamic> firstLevelMenuItems = Model;
|
||||
|
||||
foreach (var imageSet in Model.ImageSets) {
|
||||
RegisterImageSet("menu." + imageSet, Model.MenuName /* style */, 16 /* bounding box */);
|
||||
if (Model.ImageSets != null) {
|
||||
foreach (var imageSet in Model.ImageSets) {
|
||||
RegisterImageSet("menu." + imageSet, Model.MenuName /* style */, 16 /* bounding box */);
|
||||
}
|
||||
}
|
||||
|
||||
Model.Attributes.Add("role", "navigation");
|
||||
|
Reference in New Issue
Block a user