--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-07-13 22:28:07 -07:00
4 changed files with 8 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ namespace Orchard.Core.Contents {
var contentTypeDefinitions = _contentDefinitionManager.ListTypeDefinitions().OrderBy(d => d.Name);
builder.Add(T("Content"), "1", menu => {
menu.Add(T("Manage Content"), "1.2", item => item.Action("List", "Admin", new { area = "Contents" }));
menu.Add(T("Manage Content"), "1", item => item.Action("List", "Admin", new { area = "Contents" }));
foreach (var contentTypeDefinition in contentTypeDefinitions) {
var ci = _contentManager.New(contentTypeDefinition.Name);
var cim = _contentManager.GetItemMetadata(ci);

View File

@@ -55,7 +55,7 @@ namespace Orchard.Core.Routable.Drivers {
};
// TEMP: path format patterns replaces this logic
var path = part.Record.Path;
var path = part.Path;
if (path != null && path.EndsWith(part.Slug)) {
model.DisplayLeadingPath = path.Substring(0, path.Length - part.Slug.Length);
}
@@ -73,10 +73,10 @@ namespace Orchard.Core.Routable.Drivers {
// TEMP: path format patterns replaces this logic
var containerSlug = GetContainerSlug(part);
if (string.IsNullOrEmpty(containerSlug)) {
part.Record.Path = model.Slug;
part.Path = model.Slug;
}
else {
part.Record.Path = containerSlug + "/" + model.Slug;
part.Path = containerSlug + "/" + model.Slug;
}
if (!_routableService.IsSlugValid(part.Slug)) {

View File

@@ -12,7 +12,7 @@ namespace Orchard.Core.Routable.Handlers {
_routablePathConstraint = routablePathConstraint;
Filters.Add(StorageFilter.For(repository));
OnPublished<IsRoutable>((context, routable) => _routablePathConstraint.AddPath(routable.Record.Path));
OnPublished<IsRoutable>((context, routable) => _routablePathConstraint.AddPath(routable.Path));
}
}
public class IsRoutableHandler : ContentHandlerBase {
@@ -23,7 +23,7 @@ namespace Orchard.Core.Routable.Handlers {
{"Area", "Routable"},
{"Controller", "Item"},
{"Action", "Display"},
{"path", routable.Record.Path}
{"path", routable.Path}
};
}
}

View File

@@ -9,8 +9,8 @@ namespace Orchard.ContentTypes {
public void GetNavigation(NavigationBuilder builder) {
builder.Add(T("Site Configuration"), "11",
menu => menu.Add(T("Content Types"), "3", item => item.Action("Index", "Admin", new { area = "Orchard.ContentTypes" })));
builder.Add(T("Content"), "1",
menu => menu.Add(T("Manage Content Types"), "1.1", item => item.Action("Index", "Admin", new { area = "Orchard.ContentTypes" })));
}
}
}