Exemplo n.º 1
0
 public static T StartPage <T>(this HtmlHelper html) where T : ContentItem
 {
     return(Find.Closest <T>(CurrentPath(html).CurrentItem)
            ?? EngineExnteions.ContentEngine(html).Content.Traverse.StartPage as T);
 }
Exemplo n.º 2
0
 public static ContentItem RootPage(this HtmlHelper html)
 {
     return(Find.EnumerateParents(CurrentPath(html).CurrentItem, null, true).LastOrDefault()
            ?? EngineExnteions.ContentEngine(html).Content.Traverse.RootPage);
 }