示例#1
0
 public PageWeb GetPage(int SiteID, string Url, string FriendlyUrl)
 {
     var _Page = new PageWeb();
     _Page.Page = GetPageCultureBinding(SiteID, Url, FriendlyUrl);
     _Page.Content = new ContentBLL().GetByRoot(SiteID, Url, _Page.Page.PageAlias, _Page.Page.CultureName);
     return _Page;
 }
示例#2
0
 public PageWeb GetPageByAlias(int SiteID, string Url, string Alias, string Lang)
 {
     var _Page = new PageWeb();
     _Page.Page = GetPageCultureBindingByAlias(SiteID, Url, Alias, Lang);
     _Page.Content = new ContentBLL().GetByRoot(SiteID, Url, Alias, Lang);
     return _Page;
 }
示例#3
0
 public static ICollection<ContentBindingList> FindItems(this HtmlHelper helper, PageWeb Model, string Value)
 {
     return FindItems(helper, Model.Content, Value);
 }
示例#4
0
 public static ContentBindingList Find(this HtmlHelper helper, PageWeb Model, string Value)
 {
     return Model.Content.Items.Where(m => m.ContentPropertyAlias.Equals(Value)).SingleOrDefault();
 }
示例#5
0
 public static MvcHtmlString FindValue(this HtmlHelper helper, PageWeb Model, string Value)
 {
     return FindValue(helper, Model.Content, Value);
 }