public void SetPageMetaData(IClimbingPlace place) { ViewData["PageTitle"] = PageMetaInfoGenerator.GetTitle(place); ViewData["PageDescription"] = PageMetaInfoGenerator.GetMetaDescription(place); ViewData["PageKeywords"] = PageMetaInfoGenerator.GetMetaKeywords(place); ViewData["PageRobots"] = GetRobotsDefinition(PageRobots.IndexFollow); }
/// <summary> /// /// </summary> public static string GetMetaKeywords(IClimbingPlace place) { if (string.IsNullOrEmpty(place.MetaKeywords)) { if (place.IsIndoor) { return string.Format("Indoor climbing, rock climbing gym {0}, {1}", ((IndoorPlace)place).Address, place.Name); } else { return string.Format("Outdoor rock climbing, {0}", place.Name); } } else { return place.MetaKeywords; } }
/// <summary> /// /// </summary> public static string GetMetaDescription(IClimbingPlace place) { if ( string.IsNullOrEmpty(place.MetaDescription )) { if (place.IsIndoor) { return string.Format("Info on indoor rock climbing at {0} in {2} including people who climb at {1}, people looking for {0} climbing partners and media related to {1}", place.Name, place.ShortName, FlagList.GetCountryName((Nation)place.CountryID)); } else { return string.Format("Info on outdoor rock climbing around {0} in {2} including people who climb around {1}, people looking for climbing partners in {0} and media related to {1}", place.Name, place.ShortName, FlagList.GetCountryName((Nation)place.CountryID)); } } else { return place.MetaDescription; } }
/// <summary> /// /// </summary> public static string GetTitle(IClimbingPlace place) { if (place.IsIndoor) { return(string.Format("Indoor rock climbing at {0} & {1} climbing partners - Climbfind.com", place.Name, place.ShortName)); } else { return(string.Format("Outdoor rock climbing at {0} & {1} climbing partners - Climbfind.com", place.Name, place.ShortName)); } }
/// <summary> /// /// </summary> public static string GetMetaKeywords(IClimbingPlace place) { if (string.IsNullOrEmpty(place.MetaKeywords)) { if (place.IsIndoor) { return(string.Format("Indoor climbing, rock climbing gym {0}, {1}", ((IndoorPlace)place).Address, place.Name)); } else { return(string.Format("Outdoor rock climbing, {0}", place.Name)); } } else { return(place.MetaKeywords); } }
/// <summary> /// /// </summary> public static string GetMetaDescription(IClimbingPlace place) { if (string.IsNullOrEmpty(place.MetaDescription)) { if (place.IsIndoor) { return(string.Format("Info on indoor rock climbing at {0} in {2} including people who climb at {1}, people looking for {0} climbing partners and media related to {1}", place.Name, place.ShortName, FlagList.GetCountryName((Nation)place.CountryID))); } else { return(string.Format("Info on outdoor rock climbing around {0} in {2} including people who climb around {1}, people looking for climbing partners in {0} and media related to {1}", place.Name, place.ShortName, FlagList.GetCountryName((Nation)place.CountryID))); } } else { return(place.MetaDescription); } }
/// <summary> /// /// </summary> public static string GetTitle(IClimbingPlace place) { if (place.IsIndoor) { return string.Format("Indoor rock climbing at {0} & {1} climbing partners - Climbfind.com", place.Name, place.ShortName); } else { return string.Format("Outdoor rock climbing at {0} & {1} climbing partners - Climbfind.com", place.Name, place.ShortName); } }
public void SetPageMetaData(IClimbingPlace place) { ViewData["PageTitle"] = PageMetaInfoGenerator.GetTitle(place); ViewData["PageDescription"] = PageMetaInfoGenerator.GetMetaDescription(place); ViewData["PageKeywords"] = PageMetaInfoGenerator.GetMetaKeywords(place); ViewData["PageRobots"] = GetRobotsDefinition(PageRobots.IndexFollow); }