/// <summary> /// Gets the Page's Url Slug based on the given NodeID and Culture. If Culture not found, then will prioritize the Site's Default Culture, then Cultures by alphabetical order. /// </summary> /// <param name="NodeID">The NodeID</param> /// <param name="DocumentCulture">The Document Culture, if not provided will use default Site's Culture.</param> /// <param name="SiteName">The Site Name, if not provided then will query the NodeID to find it's site.</param> /// <returns>The UrlSlug (with ~ prepended) or Null if page not found.</returns> public static string GetPageUrl(int NodeID, string DocumentCulture = null, string SiteName = null) { return(DynamicRouteInternalHelper.GetPageUrl(NodeID, DocumentCulture, SiteName)); }
/// <summary> /// Gets the Page's Url Slug based on the given DocumentGuid and it's Culture. /// </summary> /// <param name="DocumentGuid">The Document Guid</param> /// <returns>The UrlSlug (with ~ prepended) or Null if page not found.</returns> public static string GetPageUrl(Guid DocumentGuid) { return(DynamicRouteInternalHelper.GetPageUrl(DocumentGuid)); }
/// <summary> /// Gets the Page's Url Slug based on the given NodeGuid and Culture. If Culture not found, then will prioritize the Site's Default Culture, then Cultures by alphabetical order. /// </summary> /// <param name="NodeGuid">The Node to find the Url Slug</param> /// <param name="DocumentCulture">The Document Culture, if not provided will use default Site's Culture.</param> /// <returns>The UrlSlug (with ~ prepended) or Null if page not found.</returns> public static string GetPageUrl(Guid NodeGuid, string DocumentCulture = null) { return(DynamicRouteInternalHelper.GetPageUrl(NodeGuid, DocumentCulture)); }
/// <summary> /// Gets the Page's Url Slug based on the given DocumentID and it's Culture. /// </summary> /// <param name="DocumentID">The Document ID</param> /// <returns></returns> public static string GetPageUrl(int DocumentID) { return(DynamicRouteInternalHelper.GetPageUrl(DocumentID)); }