/// <summary> /// Converts the content form url virtual (relative) path to an application absolute path. /// </summary> /// <param name="helper">The url helper object.</param> /// <param name="form">The form object.</param> /// <param name="urlparams"></param> /// <returns>A absolute url of content form.</returns> public static string Content(this UrlHelper helper, ContentFormDecorator form, params object[] urlparams) { if (form == null) { throw new ArgumentNullException("form"); } var url = form.Url(urlparams); if (!string.IsNullOrEmpty(url)) { return(helper.Content(url)); } return("javascript:void(0);"); }
/// <summary> /// Create a new web page by specified content form. /// </summary> /// <param name="form">The content form object.</param> /// <param name="parentId">The parent page id.</param> /// <param name="title">The page title</param> /// <param name="desc">The page description</param> /// <returns>A web page decorator object that wrapps the web page model.</returns> public WebPageDecorator CreatePage(ContentFormDecorator form, int parentId = 0, string title = "", string desc = "") { throw new NotImplementedException(); }