Some work on getting routing cleaned up for Orchard.Blogs

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-13 11:15:38 -08:00
parent e56c682586
commit 15efc07484
16 changed files with 133 additions and 91 deletions

View File

@@ -113,6 +113,10 @@ namespace Orchard.Core.Routable.Services {
: slug;
}
public static string GetChildPath(this IRoutableAspect routableAspect, string slug) {
return string.Format("{0}/{1}", routableAspect.Path, slug);
}
public static string GetEffectiveSlug(this IRoutableAspect routableAspect) {
var containerPath = routableAspect.GetContainerPath();